Thread: PATH question

  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Rep Power

    Question PATH question

    I installed Python on a hosted BSD box which is a more recent version than the ISP's existing installed version:

    My version is in /usr/home/myname/usr/local/bin/python
    My ISP's version is in /us/local/bin/python

    I want my version to be the one that gets run when I type python

    How would I achieve that?

  2. #2
  3. Big Endian
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    May 2001
    Fly-over country
    Rep Power
    Can you remove /us/local/bin/python from the $PATH environment variable and replace it with /usr/home/myname/usr/local/bin/python?

    I'm still very new to Linux (and have never used BSD) but I think another option would be to create a symbolic link. You would rename (or delete) your old python to something like python_old. Then you would create a symbolic link like this:

    ln -s /usr/home/myname/usr/local/bin/python /us/local/bin/python

    When you ran /us/local/bin/python, it would actually be a link to /usr/home/myname/usr/local/bin/python and would run it instead.

IMN logo majestic logo threadwatch logo seochat tools logo