What Is RPM

This section provides a quick introduction on RPM (RedHat Package Manager), which is a free and open packaging system on Red Hat Enterprise Linux as well as other Linux and UNIX systems.

What Is RPM? - RPM (RedHat Package Manager) is a free and open packaging system, which runs on Red Hat Enterprise Linux as well as other Linux and UNIX systems.

You can get a list of RPM commands by running "rpm --help" on CentOS 8:

herong$ rpm --help

Usage: rpm [OPTION...]

Query/Verify package selection options:
  -a, --all                          query/verify all packages
  -f, --file                         query/verify package(s) owning file
  -g, --group                        query/verify package(s) in group
  -p, --package                      query/verify a package file
  ...

Query options (with -q or --query):
  -c, --configfiles                  list all configuration files
  -d, --docfiles                     list all documentation files
  -L, --licensefiles                 list all license files
  -A, --artifactfiles                list all artifact files
  ...

Verify options (with -V or --verify):
      --nofiledigest                 don't verify digest of files
      --nofiles                      don't verify files in package
      ...

Install/Upgrade/Erase options:
  -i, --install                      install package(s)
      --nodeps                       do not verify package dependencies
      ...
  -U, --upgrade=<packagefile>+       upgrade package(s)
      --reinstall=<packagefile>+     reinstall package(s)

Some commonly used RPM commands are:

herong$ rpm -q --all | more
  boost-locale-1.66.0-6.el8.x86_64
  trousers-lib-0.3.14-4.el8.x86_64
  xml-common-0.6.3-50.el8.noarch
  sscg-2.3.3-6.el8.x86_64
  yelp-xsl-3.28.0-2.el8.noarch
  vsftpd-3.0.3-31.el8.x86_64
  ...

herong$ rpm -q ftp | more
  ftp-0.17-78.el8.x86_64

herong$ rpm -q --all | grep ftp
  vsftpd-3.0.3-31.el8.x86_64
  python3-requests-ftp-0.3.1-11.el8.noarch
  ftp-0.17-78.el8.x86_64

herong$ sudo rpm -ivh foo-1.0-1.i386.rpm

herong$ sudo rpm -Uvh foo-1.0-1.i386.rpm

Table of Contents

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

 Files and Directories

 Users and Groups

 File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

Software Package Manager on CentOS - DNF and YUM

 What Is DNF

 Manage DNF Package Repositories

 What Is YUM

What Is RPM

 What Is pkgs.org

 Install and Manage Java Packages on CentOS

 Install and Manage Perl Packages on CentOS

 Install "git-core" for GitHub Packages on CentOS

 Failed to Download Metadata for Repo ...

 Replacing CentOS Repositories to Local Mirrors

 vsftpd - Very Secure FTP Daemon

 LDAP (Lightweight Directory Access Protocol)

 Administrative Tasks

 References

 Full Version in PDF/EPUB