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
- Archiving and Compression: `tar`, `gzip`, `bzip2`
- Package Management (Debian/Ubuntu): `apt`, `dpkg`
- Package Management (CentOS/Fedora): `yum`, `dnf`, `rpm`
- Building from Source: configure, make, and make install