Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Linux > RPM > How to list / find out what files are in rpm package ?

How to list / find out what files are in rpm package ?

All the versions of this article: <English> <français>

For already installed package, you must use the following syntax:
rpm -ql packagename

 
# rpm -ql pciutils
/sbin/lspci
/sbin/setpci
/usr/sbin/update-pciids
/usr/share/doc/pciutils-3.1.10
/usr/share/doc/pciutils-3.1.10/COPYING
/usr/share/doc/pciutils-3.1.10/ChangeLog
/usr/share/doc/pciutils-3.1.10/README
/usr/share/doc/pciutils-3.1.10/pciutils.lsm
/usr/share/man/man8/lspci.8.gz
/usr/share/man/man8/setpci.8.gz
/usr/share/man/man8/update-pciids.8.gz

To list a given uninstalled package, you must use the following syntax:
rpm -qlp packagename.rpm


# rpm -qlp fping-3.8-1.el6.rf.x86_64.rpm
/usr/sbin/fping
/usr/sbin/fping6
/usr/share/doc/fping-3.8
/usr/share/doc/fping-3.8/COPYING
/usr/share/doc/fping-3.8/ChangeLog
/usr/share/doc/fping-3.8/README
/usr/share/man/man8/fping.8.gz
/usr/share/man/man8/fping6.8.gz

Also in this section

  1. yumdownloader how to download RPM package without installing it
  2. How to list / find out what files are in rpm package ?
  3. How to turn off / avoid brp-python-bytecompile script in a spec file ?
  4. RPM What files have been changed ? — Verify System Files
  5. yumdownloader comment télécharger un RPM sans l’installer