portmaster and portupgrade: commandnot found issue

Code:
alie@fbsd(/usr/home/alie): portmaster
bash: portmaster: command not found
alie@fbsd(/usr/home/alie): portupgrade
bash: portupgrade: command not found

Code:
alie@fbsd(/usr/home/alie): $PATH
bash: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin: No such file or directory

I got that error when try to run portmaster or portupgrade. Strange since i already installed portmaster and portupgrade on my machine. And i can see man when i hit man portupgrade

Please help me to solve this issue. Thanks!
 
Hi Alie,

portmaster gets put in /usr/local/sbin/, which is not in your path.

In the future you can verify where the files are with:
Code:
pkg_info -L /var/db/pkg/portmaster-3.3

Joey
 
Also note that you would not normally run either of these as a regular user.
 
I have the same problem, but with everything I install.

The only way I can get commands to work is to reboot. WTF?

What is the command to reset the hash of executable files in my path?
 
DutchDaemon said:
Also note that you would not normally run either of these as a regular user.

If you define
Code:
PM_SU_CMD=/usr/local/bin/sudo
in your portmaster.rc file (and do the other configuration mentioned in the man page) then you can run portmaster as a regular user, and it will only use enhanced privileges when absolutely necessary.

FYI,

Doug
 
Back
Top