LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2007, 06:06 AM   #1
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Rep: Reputation: 16
Finding Install Path


A command such as yum list firefox will tell me the version of firefox I presently have installed, but not where it is installed. Is there a way of finding the path to an installation?
 
Old 07-16-2007, 06:17 AM   #2
DF.cn
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
maybe use: #find / -name firefox to find
 
Old 07-16-2007, 06:34 AM   #3
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
$ whereis firefox

should do the job.

or..

$ which firefox

Last edited by camelrider; 07-16-2007 at 06:36 AM.
 
Old 07-17-2007, 01:51 AM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Applications in Linux typically get installed to various locations - bin, share, man, etc and so on based on which part of the application you're talking about. As camelrider said the "which" command is handy for finding out where the executable binary is located (assuming it's not a library). Depending on your distribution you can probably also use the "locate" command to find stuff (I'd be very surprised if FC6 didn't regularly rebuild the slocate database).

As for "which", I often use it in combination with other commands, for example "ldd $(which tar)" will tell you each dynamic library that is used by "tar" which may help track down issues with multiple versions of the same library installed at the same time, for example.
 
Old 07-17-2007, 02:14 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If locate does need to to be updated, then as root:

updatedb


and yes that is typed correctly.


What may be of more importance is, why you need to know? Unlike windows one seldom needs to know where a program is located.

Lazlow
 
Old 07-17-2007, 10:09 PM   #6
JonBL
Member
 
Registered: Oct 2006
Location: Victoria, Australia
Distribution: Fedora 10
Posts: 127

Original Poster
Rep: Reputation: 16
Thank's everyone for your help. Lazlo, I asked because I'm attempting to follow Sun's JRE installation instructions to install their plugin for mozilla, where they state "If mozilla is installed in this directory:..."
 
  


Reply



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
finding the PATH tahiche Linux - Software 7 10-12-2005 12:47 PM
Finding process path praj_linux Solaris / OpenSolaris 5 12-21-2004 10:01 AM
Finding the kernel path blacksunshine Linux - Software 2 10-03-2004 02:45 PM
finding java path? pyropenguin Linux - Newbie 2 09-19-2002 01:02 PM
finding java path? pyropenguin Linux - Software 2 09-15-2002 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration