Last Updated: March 18, 2016
·
238
· jeffli

packages management commands in CentOS

  • List installed files in a package
rpm -ql PACKAGENAME
  • List files contents in a package
rpm -qlp RPM_FILE
  • Search package name of a command:
yum whatprovides PACKAGENAME
  • List dependencies of a rpm file:
rpm -qpR RPM_FILE_NAME
  • Extract a rpm file without installation
rpm2cpio RPM_FILE | cpio -idmv