LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2007, 03:23 PM   #1
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Rep: Reputation: 15
Installation Path lookup?


How do I lookup the installation directory of a program?

i.e. I'd like to know what directory mysql was installed to, how do I look this up?
 
Old 12-18-2007, 03:48 PM   #2
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Rep: Reputation: 15
Code:
whereis <program-name>
After anything specifically with MySQL?
 
Old 12-18-2007, 03:51 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you are using an rpm based distro running something like "rpm -ql mysql" will show you where all the files were placed. Another very good command is "which". It only looks in your path, so shows you where executables are.
 
Old 12-19-2007, 06:03 AM   #4
poonippi
Member
 
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76

Rep: Reputation: 15
Quote:
Originally Posted by reddazz View Post
If you are using an rpm based distro running something like "rpm -ql mysql" will show you where all the files were placed.
The .deb equivalent is
Code:
dpkg -L <package-name>
.
 
Old 12-19-2007, 06:14 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by poonippi View Post
The .deb equivalent is
Code:
dpkg -L <package-name>
.
Cool. Thanks for that one.
 
Old 12-21-2007, 06:16 PM   #6
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reddazz View Post
If you are using an rpm based distro running something like "rpm -ql mysql" will show you where all the files were placed. Another very good command is "which". It only looks in your path, so shows you where executables are.
As far as I understand, that only holds through for programs that were installed via RPM? What about makefile type of installs?

I ran whereis php and got the following:
Code:
 whereis php
php: /usr/bin/php /etc/php.d /etc/php.ini /usr/lib/php /usr/lib/php.ini /usr/local/bin/php /usr/local/lib/php.ini,v /usr/local/lib/php /usr/local/lib/php.ini /usr/include/php /usr/man/man1/php.1 /usr/share/man/man1/php.1.gz
How do I know which one is being used?
Is it /usr/bin/php
or /usr/local/bin/php?
 
  


Reply


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
KDE installation path? JussiKp Linux - Newbie 4 05-23-2020 11:14 AM
Linux Path Lookup: php where command jCash Linux - Newbie 1 04-15-2007 05:24 PM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
installation path hansi umayangan Red Hat 1 03-30-2005 12:04 AM
Konqueror Installation Path? webwally Linux - Newbie 4 03-22-2005 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 AM.

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