LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 05: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, 05:27 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

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

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

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

All times are GMT -5. The time now is 08:37 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