LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   how to remove 2nd path to the same command (https://www.linuxquestions.org/questions/suse-opensuse-60/how-to-remove-2nd-path-to-the-same-command-770563/)

raju.mopidevi 11-20-2009 11:55 PM

how to remove 2nd path to the same command
 
When I installed Open SuSE 11.0 KDE 3.5, it has firefox 3 beta 5, i had downloaded latest version of firefox.tar.gz.

i had extracted that .tar files to "/usr/local/bin"
I made this path as the run command path using the "kmenuedit".

when i check firefox location it is showing as
Code:

raju@linux-fphk:~> whereis firefox
firefox: /usr/bin/firefox /usr/lib/firefox /usr/bin/X11/firefox /usr/local/bin/firefox /usr/share/man/man1/firefox.1.gz


when I click on the firefox button it is opening with latest version.
normally I use alt + f2 to open a program.
when I typed firefox in alt + f2 window, it is opening older version.

Quote:

"how to remove the path of older version firefox ?"

nglbrkr 11-21-2009 12:10 AM

I would guess that when you type firefox, it is /usr/bin/firefox that runs.
You could test this to find out by typing the full path instead of just the name.
Then, if it is so, go into /usr/bin and rm firefox (or mv to firefox.bak if nervous).
Then make a symlink to your new firefox.
Code:

ln -s  /path/to/new/firefox firefox

raju.mopidevi 11-21-2009 12:16 AM

i had followed your procedure, it saying that
Quote:

command not found

raju.mopidevi 11-21-2009 12:17 AM

when i try to access the firefox using alt + f2, it is saying that,
Quote:

Could not run the specified command

nglbrkr 11-21-2009 12:22 AM

what happens if you type the full path to your new firefox?

raju.mopidevi 11-21-2009 12:28 AM

when i tried with full path in alt + f2 prompt window , new version is opening.

is it possible to open with single word "firefox", as previous installation supported.

nglbrkr 11-21-2009 12:44 AM

good, then you are close!

Look at the permissions of the symlink. Is it executeable? Are you sure the path is correct on that symlink?

raju.mopidevi 11-21-2009 12:50 AM

latest version of firefox is "/usr/local/bin/firefox/firefox". This file is executing nice.

older version firefox link is "/usr/bin/firefox".

i had removed /usr/bin/firefox. so alt+f2 prompt saying that could not run specified command.
i want add latest version link.

nglbrkr 11-21-2009 01:22 AM

on my computer I have this
Code:

one:/usr/bin# ls -l | grep firefox
lrwxrwxrwx 1 root  root          26 2009-02-25 22:39 firefox -> ../lib/iceweasel/iceweasel
lrwxrwxrwx 1 root  root          26 2009-02-25 22:39 mozilla-firefox -> ../lib/iceweasel/iceweasel

so you can see my "firefox" in /usr/bin is a symlink to something else. That's why I thought the same thing should work for you.

raju.mopidevi 11-21-2009 01:55 AM

after seeing your system link, i was able to modify the error.
thank you.

nglbrkr 11-21-2009 02:18 AM

Quote:

Originally Posted by raju.mopidevi (Post 3764690)
after seeing your system link, i was able to modify the error.
thank you.

glad it worked in the end!


All times are GMT -5. The time now is 02:29 AM.