≡ Menu

HowTo: RPM List Files

How do I list file stored inside a rpm file?

You need to use the rpm command as follows:

rpm command example

The syntax is as follows for .rpm file:
# rpm -qpl file.rpm
In this example, list rpm files stored inside httpd-2.2.3-31.el5_4.2.x86_64.rpm, enter:
# rpm -qlp httpd-2.2.3-31.el5_4.2.x86_64.rpm
Sample outputs:


How Do I List Files For Installed Package?

You need to use rpm command as follows:
# rpm -ql packageName
# rpm -ql samba
# rpm -ql httpd

Share this tutorial on:

Like this? Follow us on Twitter OR support us by using Patreon

{ 3 comments… add one }
  • Prabhjot Singh March 12, 2010, 3:18 pm

    You can also use
    to list its content………

  • Prabhjot Singh March 12, 2010, 3:19 pm

    #less abc.rpm

  • SANJAY VERMA SWAPNIL SACHIN June 14, 2011, 6:12 pm

    We found a lot help from this .
    Thanks and keep this up

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , ,