0

I have to versions of a software (Tecplot). When I write "tec360" in the terminal it brings me the old version. How can I change the program call directory so that it will bring me the new version?

2
  • How did you install the old version? How did you install the new version?
    – kiri
    Oct 11, 2013 at 2:43
  • @minerz029: Old version is installed to "/opt". The new version is installed to home directory.
    – Shibli
    Oct 11, 2013 at 2:45

2 Answers 2

2

If you want to keep both versions and start the version which is installed in your home directory when you type tec360, then add the full path of tec360 to your PATH. For example, if the path of tec360 is ~/tp/bin, then add:

export PATH=$HOME/tp/bin:$PATH

See also:

2
  • typed that line, gave no error but did not work
    – Shibli
    Oct 11, 2013 at 3:41
  • 1
    @Shibli I said for example. But the path of tec360 (I found out meanwhile) is ~/tp/bin, so use export PATH=$HOME/tp/bin:$PATH Oct 11, 2013 at 3:45
1

Move the new version you have installed to your /opt directory and replace the old one with the new one. Then have a system restart.

something like

sudo mv ~/tecplot /opt/

If you are not root , then do as follows in your terminal

gedit .bashrc

write a line at the end of the opened text file as

alias tec360="~/tp/bin/tec360"

Then save and close the text file.

Then in the terminal write as

source ~/.bashrc

now try again by calling your program.

5
  • But I am not super user. Thats why I installed it to home directory.
    – Shibli
    Oct 11, 2013 at 3:26
  • what is the executable path of your new tecplo
    – Raja G
    Oct 11, 2013 at 3:30
  • ~/tp/bin/tec360
    – Shibli
    Oct 11, 2013 at 3:35
  • In that file I saw the path of the old version. I just replaced it with the new version and it opened new version closing and opening terminal. So what is the difference between this way and that alias thing?
    – Shibli
    Oct 11, 2013 at 3:51
  • 1. previously your program was called with the old path and now you have changed the path to new program path where you have the new one installed. 2. alias will call the long executables with custom names set by user. linfo.org/alias.html
    – Raja G
    Oct 11, 2013 at 4:00

You must log in to answer this question.

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