Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

YUM

Direct answer

YUM is the older RPM package manager used up to RHEL/CentOS 7. On RHEL 8 and later yum is a compatibility alias for DNF.

When to use this

Use it on older systems or when following older documentation.

First 30 seconds

1. yum --version — real YUM or the DNF alias?

2. yum repolist — enabled repos.

3. yum history — previous transactions.

4. Old system → check its support status.

5. Use dnf syntax on RHEL 8+.

Operational verification

yum (or dnf alias) reads repos → resolves → rpm installs

Evidence · next step

For Package Management → RHEL / Rocky / AlmaLinux → YUM, continue with the first unproven Topic check: Identify distribution major version and actual yum implementation/backend. If that boundary is healthy, advance to the adjacent check: Inspect enabled repositories, plugins/configuration and candidate package provenance. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it on older systems or when following older documentation.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

release + yum implementation → yum/dnf config/plugins → repository metadata → solver/candidate → transaction plan → RPM operation → installed state → runtime/workload verification

Healthy evidence: the actual implementation is identified, repository/candidate policy is intentional, RPM state matches the transaction and affected workloads validate.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify distribution major version and actual yum implementation/backend.

  • Inspect enabled repositories, plugins/configuration and candidate package provenance.
  • Review transaction output/history and verify RPM installed state.
  • Validate service/runtime effects and original workload after package changes.

Verification chain. release + yum implementation → yum/dnf config/plugins → repository metadata → solver/candidate → transaction plan → RPM operation → installed state → runtime/workload verification

Step 3 Commands Verify boundary
yum --version
ls -l /usr/bin/yum   # often a link to dnf
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: documentation or troubleshooting assumes legacy YUM on a DNF-backed system, masking the real configuration, plugin or solver path.

Step 5 Common mistakes Narrow the fault
  • Following old yum-only instructions on current RHEL.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

Commands map directly to dnf (install, update, remove, history). RHEL/CentOS 7 is out of standard support — plan upgrades.

Key checks
  • apt policy <pkg> / dnf info <pkg> — installed and candidate versions
  • dpkg -l <pkg> / rpm -q <pkg> — installed package
  • apt-cache depends <pkg> / dnf repoquery --requires <pkg> — dependencies
  • dpkg -S <file> / rpm -qf <file> — package owning a file
ReferenceWhat it is1 section · depth on demand

Core model

Do not assume yum semantics from the command name alone. Identify the binary/frontend implementation, distribution release and repository stack. On legacy systems, YUM has its own metadata/plugin behavior; on modern systems it may invoke DNF compatibility mode. In both cases, separate repository metadata, solver decisions, RPM transaction state and workload outcome.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

YUM evidence is release/implementation-specific and shows only the observed frontend/solver transaction; it does not replace RPM or workload verification.

Close with Verify installed package/file version, running process/library/config state and service behavior, then repeat the original workload after any required controlled restart/reload. and state what the evidence does not show.

In depth

YUM: the predecessor of DNF

YUM was the package manager of RHEL 7 and earlier, and of CentOS 7. DNF replaced it from RHEL 8. On current systems, yum is a compatibility name: a symlink or wrapper that runs DNF. The DNF documentation describes the commands under their DNF names, and most YUM commands carry over directly. The repository files in /etc/yum.repos.d/ kept their location and format, which the DNF configuration reference still uses.

YUM and DNF commands

TaskYUM (RHEL 7)DNF (RHEL 8 and later)
Installyum install pkgdnf install pkg
Update allyum updatednf upgrade (update is an alias)
List updatesyum check-updatednf check-update (exit 100 with updates)
Which package providesyum provides / whatprovidesdnf provides
Historyyum historydnf history
Remove unneeded dependenciespackage-cleanup --leaves / yum autoremovednf autoremove
Old kernelspackage-cleanup --oldkernelsdnf remove --oldinstallonly
Local repository metadatacreaterepocreaterepo_c

What changed with DNF

AreaDNF behaviour
Dependency resolutionA proper SAT solver (libsolv); more predictable results
removeRemoves unneeded dependencies by default
PluginsRewritten plugin interface; some yum-utils commands became DNF plugins
PerformanceFaster metadata handling

Recognising which one you're on

host$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
host$ readlink -f /usr/bin/yum
/usr/bin/yum
host$ yum --version | head -1
3.4.3
host$ cat /etc/redhat-release
Red Hat Enterprise Linux release 9.5 (Plow)
host$ readlink -f /usr/bin/yum
/usr/bin/dnf-3
host$ yum --version | head -1
4.14.0

Legacy RHEL 7 and CentOS 7

CentOS 7 reached end of life in June 2024, and its repositories moved to the vault. On remaining systems, yum fails with mirror errors unless the repository files are pointed at the archived content or an extended support provider. Treat such systems as migration candidates. Ongoing patching depends on paid extended support.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

YUM is part of Package Management → RHEL / Rocky / AlmaLinux → YUM. YUM is the historical RHEL-family package manager; on many current RHEL-family releases the yum command is compatibility behavior backed by DNF, so troubleshooting must first identify the actual implementation and release context.

Topic-specific state model. YUM is the historical RHEL-family package manager; on many current RHEL-family releases the yum command is compatibility behavior backed by DNF, so troubleshooting must first identify the actual implementation and release context.

Interpretation rule. - yum command present ≠ legacy YUM implementation.

  • YUM metadata clean ≠ RPM database consistent.
  • Plugin/repository success ≠ intended package candidate selected.
  • YUM transaction success ≠ service/application healthy.

Quick reference

yum on RHEL 8+ is an alias for dnf; old scripts using yum still work. On RHEL/CentOS 7 (end of maintenance June 2024, ELS available), real yum is used with the same basic syntax.

Differences when migrating scripts from yum to dnf: stricter dependency solving, dnf modularity streams, yum-utils commands replaced by dnf plugins (dnf config-manager, dnf download, dnf repoquery), and package-cleanup options moved (dnf remove --oldinstallonly).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. YUM evidence is release/implementation-specific and shows only the observed frontend/solver transaction; it does not replace RPM or workload verification.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. YUM owns legacy/compatibility YUM behavior within the RHEL-family branch. DNF owns modern backend semantics where applicable; RPM owns local package state.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Package Management → RHEL / Rocky / AlmaLinux → YUM. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.debian.org/doc/manuals/debian-reference/ch02.en.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
yum package manageryum dnf compatibilitylegacy yumyum transaction
Embedded reference data

Quick lookup tables

YUM operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for YUM.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateYUM is the historical RHEL-family package manager; on many current RHEL-family releases the yum command is compatibility behavior backed by DNF, so troubleshooting must first identify the actual implementation and release context.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin host + distribution/release + architecture → identify exact package/version request → enumerate effective repositories/trust → refresh/inspect metadata → compare installed versus candidate/origin → review dependency/conflict transaction → capture package-manager transaction → verify local package database/files/scripts → inspect service/reboot/config effects → repeat original workload test.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainrelease + yum implementation → yum/dnf config/plugins → repository metadata → solver/candidate → transaction plan → RPM operation → installed state → runtime/workload verificationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryYUM evidence is release/implementation-specific and proves only the observed frontend/solver transaction; it does not replace RPM or workload verification.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux package-management evidence can establish this proof path: release + yum implementation → yum/dnf config/plugins → repository metadata → solver/candidate → transaction plan → RPM operation → installed state → runtime/workload verificationUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured repository, solver, transaction, local package database, runtime-side-effect or workload scope. YUM evidence is release/implementation-specific and proves only the observed frontend/solver transaction; it does not replace RPM or workload verification.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: confirm distribution/release and repository trust, inspect candidate/origin and solver policy, correlate the package-manager transaction with dpkg/RPM local state, then test affected services and the original workload before making additional package changes.Continue to the next unresolved boundary while preserving the original test condition.

YUM · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryYUM
Topic pathPackage Management → RHEL / Rocky / AlmaLinux → YUM
Runtime stateYUM is the historical RHEL-family package manager; on many current RHEL-family releases the yum command is compatibility behavior backed by DNF, so troubleshooting must first identify the actual implementation and release context.
Fast checks- Identify distribution major version and actual yum implementation/backend. - Inspect enabled repositories, plugins/configuration and candidate package provenance. - Review transaction output/history and verify RPM installed state. - Validate service/runtime effects and original workload after package changes.
Verification chainrelease + yum implementation → yum/dnf config/plugins → repository metadata → solver/candidate → transaction plan → RPM operation → installed state → runtime/workload verification Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryYUM evidence is release/implementation-specific and proves only the observed frontend/solver transaction; it does not replace RPM or workload verification. Boundary chain: repository/metadata → dependency resolution → artifact/signature → package database/file install → scriptlets → service/process reload → effective binary/config → workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?