Chapter 4 · Repositories and Package Management·v1.0.0·Updated 7/6/2026·~10 min
What's changed: Initial version (topic 1.04, subtopics 1.04.1–1.04.4)
4.3Package Management with yum
Key points
Learn repository-based package management on RHEL-family systems: install/update/remove/search with yum, finding the package that provides a file (provides), repository configuration (/etc/yum.repos.d/, /etc/yum.conf), and download-only fetching with yumdownloader.
On RPM-family distributions (RHEL, CentOS, AlmaLinux), yum plays apt's role (its successor dnf keeps compatible usage). Same job—fetch from repositories, manage with dependencies—so learn it as a mapping from apt.
4.3.1Core yum operations
- Install with
yum install httpd; remove withyum remove httpd; update withyum update(everything, or one package by name); search withyum search keyword; details withyum info pkg. - File → package lookup with
yum provides /usr/sbin/httpd(covers uninstalled packages). List withyum list installed. - Repositories are defined by
.repofiles in /etc/yum.repos.d/ (one section per repo); global settings in /etc/yum.conf. Check enabled repos withyum repolist. - yumdownloader downloads rpm files without installing—for offline transfer or inspection.
Continue reading — free sign-up
You're reading the free preview. Sign up free to read this section in full, plus every chapter (including 4+) and all questions.

