Filed under: Automation, Linux, — Tags: Centos, Cheat sheet, Linux RPM Package Manager, Red Hat Linux, rpm — Thomas Sundberg — 2015-09-10
It turns out that I always have to search for the syntax when working with RPMs. To simplify my own life, and possible yours, here is a list of some commands I find useful. Some of them should be executed as root.
rpm -i rpm-file-name
rpm -ivh rpm-file-name
rpm -ivvh rpm-file-name
rpm -e package-name
rpm -ev package-name
rpm -evv package-name
rpm -Uvh rpm-file-name
rpm -qa
rpm -qpl rpm-file-name
rpm -ql package-name
rpm --help
-v
-vv
-h