Thomas Sundberg

September 10, 2015

RPM Cheat sheet

Filed under: Automation, Linux — Tags: , , , , — Thomas Sundberg @ 21:42

This post has been migrated to

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.

  • Install: rpm -i rpm-file-name
  • Install verbose with a progress bar: rpm -ivh rpm-file-name
  • Debug the installation: rpm -ivvh rpm-file-name
  • Uninstall: rpm -e package-name
  • Uninstall verbose: rpm -ev package-name
  • Uninstall debug: rpm -evv package-name
  • Upgrade: rpm -Uvh rpm-file-name
  • List installed packages: rpm -qa
  • List files in an rpm: rpm -qpl rpm-file-name
  • List files for an installed package: rpm -ql package-name
  • Getting help: rpm --help
  • Verbose mode: -v
  • Debug mode: -vv
  • Progress bar with hash marks: -h


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: