LinuxQuestions.org
Review your favorite Linux distribution.
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 03-26-2010, 04:23 AM   #1
suman5u
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
Find Installed Location of RPM Package in Unix


Using rpm -qa | grep -i <pkgname> gives if a package is installed or not.

But, I would like to find out where a package is already installed i.e the location where a particular package is installed say /opt/<pkg>

Please help me on this...!

Many thanks in advance...
 
Old 03-26-2010, 04:27 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
To list the files in a package:
Code:
rpm -ql <pkgname>
Evo2.
 
Old 03-26-2010, 04:28 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Welcome to LinuxQuestions!

The question should be: where a package installed stuff. The default locations are /usr/bin for binary executables, /usr/lib for shared objects on a 32-bit OS, /usr/lib64 on a 64-bit OS, /usr/share/doc for documentation files and so on. You can find out using
Code:
rpm -ql <package>
 
  


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
Installed location of RPM vibhor_agarwalin Linux - General 9 04-12-2009 11:55 PM
Launch location of my rpm package? jimwelc Programming 4 05-02-2006 03:06 PM
Find location of packages previously installed with yum on fedora core 5 Tails and Link Linux - Newbie 8 04-30-2006 04:27 AM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
rpm package not installed? dwarf007 Linux - Newbie 1 12-06-2004 03:52 PM


All times are GMT -5. The time now is 05:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration