I can to enable some program installed from tarball...

using this command:

echo 'export PATH=/usr/local/SomeProgram/bin:$PATH' >> ~/.bash_profile
echo 'export MANPATH=/usr/local/SomeProgram/man:$MANPATH' >> ~/.bash_profile

But how to do it for all users (including root profile)?

$ more /etc/paths

$ more /etc/manpaths

Try with this like Root:

# echo '/usr/local/SomeProgram/bin' >> /etc/paths
# echo '/usr/local/SomeProgram/man' >> /etc/manpaths

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .