LinuxQuestions.org
Visit Jeremy's Blog.
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, 01: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 01:37 AM.
 
Old 02-19-2006, 02:37 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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, 09: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, 09:40 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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, 09:43 PM   #5
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
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, 01: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, 12: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 11:53 AM
create RPM-package from installed files ? hungnt Linux - Software 1 07-10-2005 11:17 PM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
command to list rpm already installed? ginda Linux - Newbie 2 03-09-2005 06:25 AM
RPM in Slackware package list mpelts Slackware 1 09-01-2003 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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