Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a package system (think npm, cpan, or even homebrew) that would be suitable for shell scripts?

share|improve this question
Can you expand on what your requirments are? – Mark Apr 18 '13 at 8:55
@Mark Easily distribute a shell script, ideally with support for updating the script, etc. Lots of people are doing curl | /bin/sh type things, I was wondering if there was a better way. – julien_c Apr 18 '13 at 9:39

If you need traditional revision control, you can easily use GitHub even if you don’t know git via their free Mac app. I’ve done that at

If you just want sharing, put your scripts on Dropbox. For example, I save mine in ~/Dropbox/bin/ which I’ve added to my $PATH so they’re available on all my Macs. View the file on and choose the share option, then choose ‘Twitter’ to get the short URL like or the longer one like

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 ?dl=1 to the URL, such as

share|improve this answer

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.

share|improve this answer

There is a package manager. Jean - Shell Package Manager for Linux.

There is its homepage:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.