Oct
26
2016
0
Linux Package Management Commands
Yes, some distros still use rpm.
Extract files from an RPM:
rpm2cpio filename.rpm | cpio -idv
Unpack an RPM into /tmp/deleteme without installing it:
rpm -ivh -root /tmp/deleteme --nodeps --noscripts package.rpm
Install
rpm -ivh
Upgrade (use this except for kernels)
rpm -Uvh
Find out what's installed
rpm -qa
See which package a file belongs to
rpm -qf
- Read more about Linux Package Management Commands
- Log in to post comments