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 02-23-2007, 05:44 AM   #1
srisci87
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, 05:48 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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, 06:09 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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
koffice-i18n-ru-1.6.1-37.2
koffice-illustration-1.6.1-19.1
koffice-devel-1.6.1-19.1
goffice-0.2.1-24
koffice-i18n-ru-doc-1.6.1-37.2
koffice-1.6.1-19.1
goffice-devel-0.2.1-24

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

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


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration