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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-18-2007, 03:23 PM
|
#1
|
Member
Registered: Aug 2005
Distribution: Debian
Posts: 75
Rep:
|
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?
|
|
|
12-18-2007, 03:48 PM
|
#2
|
Member
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76
Rep:
|
Code:
whereis <program-name>
After anything specifically with MySQL?
|
|
|
12-18-2007, 03:51 PM
|
#3
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
12-19-2007, 06:03 AM
|
#4
|
Member
Registered: Dec 2007
Distribution: Debain Fluxbox
Posts: 76
Rep:
|
Quote:
Originally Posted by reddazz
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>
.
|
|
|
12-19-2007, 06:14 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Originally Posted by poonippi
The .deb equivalent is
Code:
dpkg -L <package-name>
.
|
Cool. Thanks for that one.
|
|
|
12-21-2007, 06:16 PM
|
#6
|
Member
Registered: Aug 2005
Distribution: Debian
Posts: 75
Original Poster
Rep:
|
Quote:
Originally Posted by reddazz
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?
|
|
|
All times are GMT -5. The time now is 06:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|