How understand which dependency need upgrade

for example after cvsup , I want install KDE42 , how I can understand which dependency of KDE42 is upgrade or need upgrade ?
and I must upgrade them before I want install KDE42
 
Really, portupgrade/portmaster/portmanager will figure out what to upgrade and in which order. This wheel has already been invented several times over. Something like 'portupgrade kde4' will take care of everything. It is useless to keep track of all the ports that kde4 depends on, and all the ports on which it depends. If you really want to get a feel for how pointless that is, try:

cd /usr/ports/x11/kde4
make pretty-print-run-depends-list
make pretty-print-build-depends-list

or

pkg_info -rR kde4_your_version
 
Try cd /usr/ports/x11/kde4 && make missing
But you should keep all your ports updated.
If you are lazy about that, you should better REMOVE the ones you do not need.
 
You can run portupgrade with the -n switch. Quoting the manpage:

Code:
     -n
     --noexecute            Do not actually install or upgrade any packages;
                            just show what would be done.  This option implies
                            -v and negates -i and -y.

I imagine portupgrade -Rn x11/kde4 should give you the information you want.
 
Back
Top