View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-23-2007, 06:44 AM   #1
LQ Newbie
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Exclamation Where are the rpm packges installed defaultly?

Hello Dudes,

I have problem in knowing whether a rpm package is installed or not. I couldn't find where it is installed and how could i run those packages.
Old 02-23-2007, 06:48 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You can find out if an rpm is installed by running the "rpm -qa NameOfPackage". What package did you install and on what distro?
Old 02-23-2007, 07:09 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658Reputation: 658
A package will probably install packages in more than one place. Such as a binary in /usr/bin; a library in /usr/lib; notes in /usr/share/doc/packages/<package-name>.

The rpm command: rpm -ql <package-name>
will list the files that a package supplied.

If you know part of the name of a package, then pipe the output to grep, for example:
rpm -qa | grep office

If you know an associated file that a package supplied, you can find which package supplied the file:
rpm -qf /etc/openct.conf

Last edited by jschiwal; 02-24-2007 at 03:40 AM. Reason: added grep info.


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
problem installing devlopment packges juanb Linux - Newbie 3 01-04-2006 04:47 PM
rpm -ivh says installed rpm -e says not installed ??? skog Fedora 3 12-22-2004 04:52 PM
rpm -q not shows installed rpm mla Linux - Software 4 10-31-2004 03:49 PM
packges problem einstien Fedora 5 09-24-2004 07:05 AM
RPM is saying installed packages aren't installed ticky87 Linux - Newbie 4 07-26-2004 02:17 AM

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration