Facebook Twitter Instagram
    WiredRevolution.com
    • Home
    • About
    • Contact Us
    • Essential Linux Commands
    • Sitemap
    Facebook Twitter Instagram
    WiredRevolution.com
    red hat

    RPM Cheat Sheet

    RyanBy RyanOctober 22, 2008Updated:May 7, 20111 Min Read
    Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Email

    RPM stands for Red Hat Package Manager. There are a variety of distributions besides Red Hat that use RPM to manage packages including Fedora, Mandriva, SUSE, CentOS, and Yellow Dog Linux among others. RPM uses a database to keep track of what packages have been installed on the system and where they are located. This functionality allows you to easily query, install, upgrade, and remove packages from your system.

    RPM packages are distributed in the following format “<package>.<version>.<architecture>.rpm”

    Check the package information.
    $ rpm -qi mypackage.1.2.3.x86_64.rpm

    List the files that will be installed.
    $ rpm -ql mypackage.1.2.3.x86_64.rpm

    Install an RPM package with the ‘-i‘ option.
    $ rpm -i mypackage.1.2.3.x86_64.rpm

    Upgrade a package that is already installed.
    $ rpm -U mypackage.2.0.0.x86_64.rpm

    Remove a package. You only need to provide the package name and not the version or rpm suffix.
    $ rpm -e mypackage

    View all the installed packages on your system.
    $ rpm -qa

    If you want to see more output you can increase the verbosity by adding the ‘-v‘ option to any of these commands. To raise it even further you can add ‘-vv‘.

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Email
    Previous ArticleHow to correctly use LD_LIBRARY_PATH
    Next Article List all open files with lsof

    Related Posts

    Safely and atomically change a symlink target

    Install Virtualbox on Ubuntu 12.10: the missing kernel module fix

    Install FFmpeg on RHEL 5 or CentOS 5

    Most Commented
    March 12, 2009

    Fix blue tinted video in Ubuntu

    September 10, 2010

    Setup SSH access between VirtualBox Host and Guest VMs

    March 8, 2011

    Install GNOME Shell in Ubuntu 10.10 Maverick

    April 4, 2009

    Setup the PS3 Bluetooth Controller on Ubuntu

    October 22, 2008

    How to correctly use LD_LIBRARY_PATH

    Recent Comments
    • Execute command on linux virtual machine (or server) from windows commandline on Setup SSH access between VirtualBox Host and Guest VMs
    • Solved: How to SSH to a VirtualBox guest externally through a host? - Daily Developer Blog on Setup SSH access between VirtualBox Host and Guest VMs
    • How to SSH to a VirtualBox guest externally through a host? [closed] – Code D3 on Setup SSH access between VirtualBox Host and Guest VMs
    • How to copy and paste from VirtualBox? [duplicate] on Setup SSH access between VirtualBox Host and Guest VMs
    • Jackie Laguna on Fix OpenGL: ChoosePixelFormat SketchUp error in WINE
    © 2025 ThemeSphere. Designed by ThemeSphere.

    Type above and press Enter to search. Press Esc to cancel.