Common RPM commands
By Joao
This is my commonly used rpm command reference
Install/Upgrade a package
rpm -Uvh package.rpm
Install an old version of a package
rpm -Uvh --oldpackage oldpackage.rpm
Query which package installed a given file
rpm -qf /bin/cp
To force a package to overwrite conflicting files
rpm -Uvh --replacefiles package.rpm
To list files owned by an installed package
rpm -ql package
List scripts inside rpm file (pre, post scriptlets)
rpm -qp --scripts /tmp/ods-dsc-1.0-18.13201_centos53.noarch.rpm
Related posts:
- Common yum commands List available repositores yum repolist Search by package name (case...
Related posts brought to you by Yet Another Related Posts Plugin.
rpm 


October 12th, 2009