Recursivity of -r and -R in portupgrade

Randy Pratt bsd-unix at
Wed Jul 4 12:33:09 UTC 2007

On Wed, 4 Jul 2007 15:56:13 +0700 (ICT)
Olivier Nicole <on at> wrote:

> Hi,
> I am wondering is the option -R and -r are mutually recursive in
> portupgrade.
> That is, if the option -R applies to every ports detected by -r and
> respectively if -r applies to every ports detected by -R.
> Lest take the example of:
> portupgrade -fRr gd
> gd depends on png, does it upgrade png with portupgrade -fRr png?
> php4-gd is built from gd, does it upgrade php4-gd with 
> portupgrade -Rrf php4-gd? (That will in turn upgrade php, maybe 
> apache...)

Portupgrade has a no-execute option (-n) which will allow you
to see what would be done without actually performing the
operation; for example:

	portupgrade -nfRr gd

will end with a list of ports that would be updated.  Another
port you may find useful is ports-mgmt/pkg_tree which will
show a dependency tree for a port.



More information about the freebsd-questions mailing list