Instiq
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 with yum remove httpd; update with yum update (everything, or one package by name); search with yum search keyword; details with yum info pkg.
  • File → package lookup with yum provides /usr/sbin/httpd (covers uninstalled packages). List with yum list installed.
  • Repositories are defined by .repo files in /etc/yum.repos.d/ (one section per repo); global settings in /etc/yum.conf. Check enabled repos with yum 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.