View Full Version : what is real different between portupgrade -R and make deinstall and install
mfaridi
February 7th, 2009, 10:12
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
SirDice
February 7th, 2009, 10:21
Make deinstall/install will only upgrade that particular port. Portupgrade -R will also upgrade it's dependencies.
DutchDaemon
February 7th, 2009, 15:34
Note: its 'upward' dependencies, i.e. the ports it depends on. You hardly ever need that, usually only when /usr/ports/UPDATING suggests it.
kamikaze
February 7th, 2009, 15:42
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 -a.
mfaridi
February 7th, 2009, 15:51
So I understand
[code]portupgrade -rf [ /code]
is better and best and safe way for upgrade packages than
portupgrade -R
kamikaze
February 7th, 2009, 16:14
No, this depends on your scenario. For a leaf package portupgrade -R, for a library portupgrade -r. The -f is only for rare cases.
Djn
February 7th, 2009, 19:02
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.
ale
February 7th, 2009, 20:37
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.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.