How to install a bunch of packages in a list?
Jeremy Lavergne
jeremy at lavergne.gotdns.org
Sun Mar 18 18:34:17 PDT 2012
> Here is the command and the list of packages that I got:
> http://bin.cakephp.org/view/1705726929
>
> Well, I have this list, it's good, but what I would like to do is just install everyone of those packages. Any ideas?
Instead of `port list` maybe `port echo "*ocaml*"`. At that point, you can pipe it through tr to have a space-delimited list, or you can have bash for loop across them.
sudo port -p install `port echo "*ocaml*" | tr '\n' ' '`
or
for i in `port echo "*ocmal*"`; do sudo port install $i; done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8796 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120318/bb072fb8/attachment.bin>
More information about the macports-users
mailing list