- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: find out installed directory from command line
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2005 05:52 AM
тАО06-25-2005 05:52 AM
how to find out installed directory from command line under linux,
for example, where was mozilla installed ?
kind regards
chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2005 06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2005 06:40 AM
тАО06-25-2005 06:40 AM
Re: find out installed directory from command line
This small application searches through the path for binaries matching the name passed to it, so you could do:
which mozilla
If what you're searching for is not in the path, then you've got the option of using the 'slocate' database:
locate mozilla
This will list all filenames in the 'slocate' database that matches the given name.
All that being said, if you need information about what files a given package has put onto your filesystem (on a Debian box), then things get a little messy. 'apt', 'dpkg' and 'dselect' are your friends though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2005 06:54 AM
тАО06-25-2005 06:54 AM
Re: find out installed directory from command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2005 07:05 AM
тАО06-25-2005 07:05 AM
Re: find out installed directory from command line
SUSE 8.2:
# whereis mozilla
mozilla: /usr/X11R6/bin/mozilla /usr/bin/X11/mozilla /usr/X11/bin/mozilla /opt/mozilla/bin/mozilla.sh /usr/share/man/man1/mozilla.1.gz
# which mozilla
/usr/X11R6/bin/mozilla
# locate mozilla
-bash: locate: command not found
DEBIAN SARGE:
# whereis mozilla
mozilla: /usr/bin/mozilla /etc/mozilla /usr/lib/mozilla /usr/share/man/man1/mozilla.1.gz
# which mozilla
/usr/bin/mozilla
# locate mozilla
/usr/lib/mozilla/res/rdf/loading.gif
/usr/lib/mozilla/res/samples
/usr/lib/mozilla/res/samples/aform.css
/usr/lib/mozilla/res/samples/Anieyes.gif
/usr/lib/mozilla/res/samples/beeptest.html
/usr/lib/mozilla/res/samples/bform.css
/usr/lib/mozilla/res/samples/bg.jpg
/usr/lib/mozilla/res/samples/cform.css
/usr/lib/mozilla/res/samples/checkboxTest.xul
/usr/lib/mozilla/res/samples/colorpicker.xul
............................................
............................................
............................................
which shows only a startup script.
greetings
chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 05:04 AM
тАО06-27-2005 05:04 AM
Re: find out installed directory from command line
dpkg -l
the package name is optional, this command outputs a table of packages installed on a machine with a brief description like so:
bofh:~# dpkg -l whois
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-====================-====================-========================================================
ii whois 4.7.0 the GNU whois client
bofh:~#
You can find out more about a specific package with this command :
dpkg -s
This prints out the summary and library information for a package.
dpkg -L
this tells you the actual location on the filesystem for everything that came in a package.
There are lots of other great switches to dpkg to help administer debian boxes.
--Dave