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

mfaridi

Aspiring Daemon

Reaction score: 16
Messages: 713

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

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,283
Messages: 33,825

Make deinstall/install will only upgrade that particular port. Portupgrade -R will also upgrade it's dependencies.
 

DutchDaemon

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 2,954
Messages: 11,351

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

Well-Known Member

Reaction score: 75
Messages: 365

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].
 
OP
mfaridi

mfaridi

Aspiring Daemon

Reaction score: 16
Messages: 713

So I understand
Code:
portupgrade -rf [ /code]
is better and best and safe way for upgrade packages than
portupgrade -R
 

kamikaze

Well-Known Member

Reaction score: 75
Messages: 365

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

Well-Known Member

Reaction score: 67
Messages: 392

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

Daemon

Reaction score: 166
Messages: 1,059

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.
 
Top