LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   List the files installed by a RPM package (https://www.linuxquestions.org/questions/linux-general-1/list-the-files-installed-by-a-rpm-package-417065/)

s_deepak_123 02-19-2006 01:34 AM

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

reddazz 02-19-2006 02:37 AM

For a package thats already installed, use
Code:

$rpm -ql packagename
For a package thats not yet installed
Code:

$rpm -qlp package-version.rpm

s_deepak_123 02-19-2006 09:31 PM

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

reddazz 02-19-2006 09:40 PM

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.

2damncommon 02-19-2006 09:43 PM

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.

s_deepak_123 02-20-2006 01:15 AM

Thank you so much again

Pmeth 02-20-2006 12:14 PM

Oh thanks this helped me out too!


All times are GMT -5. The time now is 04:24 PM.