Updating multiple ports with portmaster

perryh at pluto.rain.com perryh at pluto.rain.com
Sun Mar 27 07:36:39 UTC 2011

Doug Barton <dougb at freebsd.org> wrote:
> On 03/26/2011 10:00, Matthew Seaman wrote:
> > pkg_version -vIL= | awk '/^p5-/ { print $1 }'  | xargs portmaster
> That's a good suggestion, but if you want to use that technique, better 
> would be:  portmaster `pkg_version -vIL= | awk '/^p5-/ { print $1 }'` ...

Unless the number of ports involved is very large, either
should produce exactly the same effect.  Absent a -n or -s
switch, xargs collects up to 5000 args or a ~250KB command
line for each invocation of (in this case) portmaster.

More information about the freebsd-ports mailing list