LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 11-20-2009, 11:55 PM   #1
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Cool 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 ?"
 
Old 11-21-2009, 12:10 AM   #2
nglbrkr
Member
 
Registered: May 2005
Location: hiroshima
Distribution: debian
Posts: 75
Blog Entries: 9

Rep: Reputation: 17
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
 
Old 11-21-2009, 12:16 AM   #3
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Original Poster
Rep: Reputation: 92
i had followed your procedure, it saying that
Quote:
command not found
 
Old 11-21-2009, 12:17 AM   #4
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Original Poster
Rep: Reputation: 92
when i try to access the firefox using alt + f2, it is saying that,
Quote:
Could not run the specified command

Last edited by raju.mopidevi; 11-21-2009 at 12:20 AM.
 
Old 11-21-2009, 12:22 AM   #5
nglbrkr
Member
 
Registered: May 2005
Location: hiroshima
Distribution: debian
Posts: 75
Blog Entries: 9

Rep: Reputation: 17
what happens if you type the full path to your new firefox?
 
Old 11-21-2009, 12:28 AM   #6
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Original Poster
Rep: Reputation: 92
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.
 
Old 11-21-2009, 12:44 AM   #7
nglbrkr
Member
 
Registered: May 2005
Location: hiroshima
Distribution: debian
Posts: 75
Blog Entries: 9

Rep: Reputation: 17
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?
 
Old 11-21-2009, 12:50 AM   #8
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Original Poster
Rep: Reputation: 92
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.
 
Old 11-21-2009, 01:22 AM   #9
nglbrkr
Member
 
Registered: May 2005
Location: hiroshima
Distribution: debian
Posts: 75
Blog Entries: 9

Rep: Reputation: 17
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.
 
Old 11-21-2009, 01:55 AM   #10
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Original Poster
Rep: Reputation: 92
after seeing your system link, i was able to modify the error.
thank you.
 
Old 11-21-2009, 02:18 AM   #11
nglbrkr
Member
 
Registered: May 2005
Location: hiroshima
Distribution: debian
Posts: 75
Blog Entries: 9

Rep: Reputation: 17
Quote:
Originally Posted by raju.mopidevi View Post
after seeing your system link, i was able to modify the error.
thank you.
glad it worked in the end!
 
  


Reply

Tags
path, paths


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Only execute 2nd command on successufl execution of 1st command kregec05 Linux - Newbie 3 08-19-2009 10:29 AM
how do I remove a variable from PATH melinda_sayang Slackware 17 02-28-2009 12:55 PM
Lost ubuntu on 2nd drive-how to remove boot loader? BACTRATE Ubuntu 2 06-06-2008 03:26 PM
how to remove path using sed dtcs Programming 2 12-25-2006 04:29 PM
how to remove PATH variable? greg108 Linux - Newbie 2 08-22-2003 01:55 PM


All times are GMT -5. The time now is 09:24 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration