Is there a package system (think
cpan, or even
homebrew) that would be suitable for shell scripts?
If you just want sharing, put your scripts on Dropbox. For example, I save mine in ~/Dropbox/bin/ which I’ve added to my
The advantage (or disadvantage, I suppose) of the Dropbox version is that it will always share the most recent version of the script without you having to do any sort of official check-in procedure.
The primary disadvantage of the Dropbox method is that the URL leads to a web page for the script, whereas the direct (or “raw”) version of the script can be located by adding
Shell scripts don't need much packaging, so most people use a source control system for this. There are dozens of options, but I'd start with github and come back with a more detailed question once the github / source control system broke under the strain of volume of your scripts or the complexity of the situation.
As it stands, we can only guess what your true requirements are since all three examples you list run natively on OS X and you can roll your own packages according to each recipe if you prefer to use them.
For internet hosting, you could easily use GitHub since they host files for download or you could push the files to Amazon S3 and many other cloud hosting services that serve up files for free or inexpensively. Amazon for example allows 5 GB of free space and 20,000 hits per month before you need to pay them anything. Dropbox also has no practical limit on the number of hits, but offers less space initially if you were to sign up for a new account with them.
There is a package manager. Jean - Shell Package Manager for Linux.
There is its homepage: http://github.com/ziyaddin/jean