portupgrade(1) | portmaster(8) -- which is more effective for large upgrade?

Warren Block wblock at wonkity.com
Thu Jun 27 12:08:03 UTC 2013


On Thu, 27 Jun 2013, Garrett Wollman wrote:

> Having just gone through this in two different environments, I can
> very very strongly recommend doing the following.  It's not the "easy
> button" of the TV commercials, but it will make things much much
> easier in the future.

This is an interesting procedure and should be made into a 
web-accessible document!  Setting up a build machine for a network is a 
fairly common desire, and your procedure looks to be doing everything 
the newest way.

> Then look through the output of "pkg query" to identify the leaf
> packages that are the ones you actually wanted explicitly to have
> installed.

On a single machine, this can be approximated with portmaster's 
"--list-origins" option.  It gives a list of root and leaf ports which 
can be edited to just the desired ones.  Feed that list to portmaster on 
a system with no ports installed, and it will install the leaf ports and 
dependencies.


More information about the freebsd-stable mailing list