what is real different between portupgrade -R and make deinstall and install

what is real different between portupgrade -R and make deinstall and install ?

for example if new version of Firefox is come which one is better and why

portupgrade -R

make deinstall clean && make install clean
 
Make deinstall/install will only upgrade that particular port. Portupgrade -R will also upgrade it's dependencies.
 
Note: its 'upward' dependencies, i.e. the ports it depends on. You hardly ever need that, usually only when /usr/ports/UPDATING suggests it.
 
Actually you should always use -R with portupgrade when updating a particular port, to make sure everything it depends on is up to date.

UPDATING suggests -rf when something that lots of ports depend on is updated and has a library version number change and the depending ports do not get version bumped.

The -R flag is only not used very often, because people normally run [cmd=portupgrade]-a[/cmd].
 
So I understand
Code:
portupgrade -rf [ /code]
is better and best and safe way for upgrade packages than
portupgrade -R
 
No, this depends on your scenario. For a leaf package portupgrade -R, for a library portupgrade -r. The -f is only for rare cases.
 
Or you can even go for -Rr. It might end up updating (quite a lot) more packages, but that's not necessarily a bad thing.
 
Djn said:
Or you can even go for -Rr. It might end up updating (quite a lot) more packages, but that's not necessarily a bad thing.
On the contrary, it's good, because it will upgrade the port you specify, + (ports required by / ports that depend on ) that one. But only if they need to be upgraded.
IMHO, unless specified differently on UPDATING or you know what you are doing, -rR are the options you should use.
 
Back
Top