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
Written by Jeff Li
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Centos
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#