portupgrade doesn't work, why?

portupgrade -PP <packagename>
Code:
su: portupgrade: command not found
But man portupgrade displays the man page.
 
Did you just install it? And you have (t)csh as a shell?

Then you need to run the rehash command for the shell to pick up the new executable.
 
The binaries for portupgrade are put in /usr/local/sbin/, which might not be in your $PATH.
Does /usr/local/sbin/portupgrade work?
 
SirDice said:
Did you just install it? And you have (t)csh as a shell?

Then you need to run the rehash command for the shell to pick up the new executable.
It's bash.
 
DutchDaemon said:
In bash it's [cmd=]hash -r[/cmd]
I did hash -r still problem.
whereis portupgrade:
Code:
portupgrade: /usr/local/man/man1/portupgrade.1.gz /usr/ports/ports-mgmt/portupgrade
type portupgrade
Code:
bash: type: portupgrade: not found
 
If whereis(1) and which(1) can't find it, and it isn't in /usr/local/sbin/, it isn't installed. If it is in /usr/local/sbin/, your PATH is incomplete.
 
Back
Top