View Single Post
  #6   (View Single Post)  
Old 18th July 2009
ocicat ocicat is offline
Join Date: Apr 2008
Posts: 3,297

Originally Posted by badguy View Post
...because even after i do a

$ echo "export PKG_PATH=........" >> .profile

it still says No packages available in the PKG_PATH

~/.profile is only a text file. However, when logging into your account ~/.profile is read to initialize your shell environment. To have changes in ~/.profile be read by the running shell, you must "source" the file, ie.

$ . ~/.profile

As for where to put such lines, convention is to be put lines like this at the very bottom of the file.

For more information, study the ksh(1) manpage (or whatever shell you are using...).

You might also benefit from going to a library & checking out an introductory text on Unix. Most beginning Unix texts cover issues like this.

Last edited by ocicat; 18th July 2009 at 08:07 PM.
Reply With Quote