0Pricing
Linux Command Line Mastery · Lesson

Package Management (CentOS/Fedora): `yum`, `dnf`, `rpm`

Understand how to manage software packages on Red Hat-based systems with `yum`, `dnf`, and `rpm`.

Intro to Package Management

Welcome to package management on CentOS/Fedora! Software on Linux systems is often distributed in 'packages'.

A package manager helps you install, update, configure, and remove software packages, as well as manage their dependencies (other software they rely on).

On Red Hat-based systems like CentOS and Fedora, we primarily use three tools: rpm, yum, and dnf.

RPM: The Foundation

At its core, all Red Hat-based systems use the Red Hat Package Manager (RPM). Think of rpm as the low-level tool.

It directly handles .rpm files, which contain compiled software and metadata. However, rpm doesn't automatically resolve dependencies.

  • Install: rpm -i package.rpm
  • Query: rpm -q package_name
  • Remove: rpm -e package_name

All lessons in this course

  1. Archiving and Compression: `tar`, `gzip`, `bzip2`
  2. Package Management (Debian/Ubuntu): `apt`, `dpkg`
  3. Package Management (CentOS/Fedora): `yum`, `dnf`, `rpm`
  4. Building from Source: configure, make, and make install
← Back to Linux Command Line Mastery