RPM Options for RedHat Fedora Centos Installs

Let's learn about RPM

RPM (RedHat Package Manager)

  • Package management system used by RedHat-based Linux distros

  • FOSS (Free and open-source software)

  • An installation file similar to Windows' setup.exe

  • The file extension is *.rpm, which is called a package

RPM File Format

name-version-release.os.architecture.rpm
  • where:

    • name

      • package name

    • version

      • version of the packaged software

    • release

      • Release number of the RPM package

        • Number of times it has been modified and distributed

    • os

      • Distribution (OS) version

        • For RHEL (RedHat Enterprise Linux) including CentOS, the OS version is used in the rpm package file name

    • architecture

      • Architecture (CPU) of the RPM package

        • Refers to the CPU on which the package can be installed

  • ex)

    • gedit-2.6.1-1.fc11.i586.rpm

    • mysql-connector-java-5.1.25-3.el7.noarch.rpm

RPM Commands

Query

Install

  • U option

    • Install the package, and if it is already installed, upgrade it

  • v option

    • Print the installation process when installing the package

  • h option

    • Display the installation progress filled with # on screen

Remove

  • Use the erase option to remove

Check consistency of installed packages

Remove "broken" packages

Last updated