Create list of ports to update

andrew clarke mail at ozzmosis.com
Sun Dec 3 18:13:16 UTC 2017


On Mon 2017-12-04 04:58:43 UTC+1100, andrew clarke (mail at ozzmosis.com) wrote:

> > > > My question, now that "portmaster" is apparently dead in the water,
> > > > what is the easiest way to construct a list of ports that need updating in
> > > > the: "port-category/port-name" format?
> > 
> > > pkg query '%o' > ports.txt
> > 
> > Doesn't that just list all of the installed ports, not just the ones that need updating?
> 
> pkg query %o > /tmp/pkglist.txt
> poudriere -v bulk -j 11amd64 -f /tmp/pkglist.txt
> 
> This is what I use.

It would be nice if this worked:

# pkg query %o | poudriere -v bulk -j 11amd64 -f -

But - is not recognised as shorthand for stdin:

# poudriere -v bulk -j 11amd64 -f -
[00:00:00] Error: No such list of packages: /usr/home/ozzmosis/-

/dev/stdin isn't accepted either:

# poudriere -v bulk -j 11amd64 -f /dev/stdin
[00:00:00] Error: No such list of packages: /dev/stdin

Not a big deal, but something to know.


More information about the freebsd-questions mailing list