LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-19-2006, 02:34 AM   #1
s_deepak_123
Member
 
Registered: Oct 2004
Location: Mysore, India
Distribution: Fedora Core 1, Xandros desktop OS 2
Posts: 54

Rep: Reputation: 15
Question List the files installed by a RPM package


Hi everyone,

I just want know if there are any commands in RedHat or Fedora that would list all the files that are installed by an RPM package. Is it stored in some file as in debian where a file with a .list extension will be present for every package installed?

Thanks in advance

Last edited by s_deepak_123; 02-19-2006 at 02:37 AM.
 
Old 02-19-2006, 03:37 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
For a package thats already installed, use
Code:
$rpm -ql packagename
For a package thats not yet installed
Code:
$rpm -qlp package-version.rpm
 
Old 02-19-2006, 10:31 PM   #3
s_deepak_123
Member
 
Registered: Oct 2004
Location: Mysore, India
Distribution: Fedora Core 1, Xandros desktop OS 2
Posts: 54

Original Poster
Rep: Reputation: 15
Thumbs up Thanks

Thank you very much for the reply.
How is this stored on the filesystem?
In database form or just a plain text file for each package as in debian and slack? If they are stored in file, where are they located?

Regards
 
Old 02-19-2006, 10:40 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Its stored somewhere in /var/lib/rpm. I am not sure what kind of database it is, so maybe it will help you if you read the rpm manual or take a look at max rpm.
 
Old 02-19-2006, 10:43 PM   #5
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
FYI another useful command is the "man" command to display the manual page for a command.
For instance "man rpm" (no quotes) will give you many options you can use for finding information about RPM packages.
 
Old 02-20-2006, 02:15 AM   #6
s_deepak_123
Member
 
Registered: Oct 2004
Location: Mysore, India
Distribution: Fedora Core 1, Xandros desktop OS 2
Posts: 54

Original Poster
Rep: Reputation: 15
Smile

Thank you so much again
 
Old 02-20-2006, 01:14 PM   #7
Pmeth
LQ Newbie
 
Registered: Feb 2006
Location: Canada
Distribution: SuSe 9x
Posts: 17

Rep: Reputation: 0
Oh thanks this helped me out too!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I get a list of software that was installed via rpm TruongAn Linux - Software 10 10-04-2005 12:53 PM
create RPM-package from installed files ? hungnt Linux - Software 1 07-11-2005 12:17 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
command to list rpm already installed? ginda Linux - Newbie 2 03-09-2005 07:25 AM
RPM in Slackware package list mpelts Slackware 1 09-01-2003 03:57 PM


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