Use it to install, update or troubleshoot software on RHEL-family systems.
RHEL / Rocky / AlmaLinux
RHEL and its rebuilds (Rocky Linux, AlmaLinux) and Fedora use RPM packages managed by rpm (low level) and DNF (repositories, dependencies), with repositories in /etc/yum.repos.d/. RHEL needs a subscription for its repositories.
1. RHEL: subscription-manager status — registered?
2. dnf repolist — expected repos enabled?
3. dnf info <pkg> — available version and repo.
4. Install: dnf install <pkg>.
5. Review: dnf history / dnf history info <id>.
repos configured → metadata downloaded → dnf resolves dependencies → rpm installs → transaction recorded
For Package Management → RHEL / Rocky / AlmaLinux, continue with the first unproven Topic check: Confirm distribution/release, architecture and whether yum is legacy or DNF-backed. If that boundary is healthy, advance to the adjacent check: Capture enabled repositories, module/stream state where applicable and package candidate/origin. 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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
RHEL-family release → repository/module configuration → DNF/YUM metadata → solver + NEVRA candidate → download/signature → RPM transaction/database → scriptlets/configuration → service/policy effects → workload verification
Healthy evidence: enabled repositories and streams are intentional, the solver selects intended NEVRA, RPM database records the expected package and workload checks remain green.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Confirm distribution/release, architecture and whether yum is legacy or DNF-backed.
- Capture enabled repositories, module/stream state where applicable and package candidate/origin.
- Verify RPM installed NEVRA/state and transaction history after change.
- Check affected service/configuration/security policy and repeat the original workload test.
Verification chain. RHEL-family release → repository/module configuration → DNF/YUM metadata → solver + NEVRA candidate → download/signature → RPM transaction/database → scriptlets/configuration → service/policy effects → workload verification
Step 3 Commands Verify boundary
dnf check-update
dnf upgrade
dnf history
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: mixed repositories/streams, legacy assumptions about yum or an RPM transaction scriptlet leave the system in an unexpected state despite a seemingly normal frontend result.
Step 5 Common mistakes Narrow the fault
- Mixing EPEL and vendor packages without priorities.
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.
Subtopics
Go one level deeper into this subject.
DNF is the modern RHEL-family dependency solver and transaction frontend, combining repository metadata, package NEVRA/version comparison, dependency/conflict solving, transaction history and RPM execution.
Subtopic YUMYUM 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.
Subtopic RPMRPM defines the RHEL-family package format and local package database, recording installed package NEVRA, files, capabilities, dependencies, signatures and scriptlet-driven transaction state; RPM itself is not a full repository dependency solver.
Subtopic RepositoriesRHEL-family repositories expose signed RPM metadata and packages through configured repository definitions; baseurl/mirrorlist/metalink, GPG policy, release variables, entitlements and modular metadata can all affect package visibility and selection.
Enable extra repositories deliberately (EPEL, CRB/PowerTools, AppStream modules). On RHEL check subscription-manager status. dnf history lets you review and undo transactions.
apt policy <pkg> / dnf info <pkg>— installed and candidate versionsdpkg -l <pkg> / rpm -q <pkg>— installed packageapt-cache depends <pkg> / dnf repoquery --requires <pkg>— dependenciesdpkg -S <file> / rpm -qf <file>— package owning a file
ReferenceWhat it is1 section · depth on demand
Core model
Pin the exact distribution major/minor release and repository set because module streams, AppStream/BaseOS-like separation, vendor subscriptions and third-party repositories influence candidates. Separate DNF/YUM repository/solver state from RPM local package database state. Package transaction completion must still be followed by service, configuration, SELinux/policy and workload verification where relevant.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
RHEL-family package evidence shows repository/solver/RPM state only within the captured transaction, but it does not show resulting service or application health.
In depth
Package management on RHEL, Rocky and AlmaLinux
The RHEL family uses RPM packages, managed by rpm at the low level and DNF above it. Rocky Linux and AlmaLinux are rebuilds of RHEL, so commands, package names and repository layout are largely the same. The DNF command reference covers the tools used daily:
install,remove(which also removes no-longer-needed dependencies by default),upgradeandcheck-update.history, which lists, inspects and undoes transactions.repolistandprovides.distro-sync, which aligns all packages with the versions in the enabled repositories.
Repository layout (RHEL 8, 9 and derivatives)
| Repository | Content |
|---|---|
| BaseOS | Core operating system packages |
| AppStream | Applications, languages and databases, some in several versions |
| CRB (CodeReady Builder) | Build dependencies and development packages; off by default |
| EPEL | Extra Packages for Enterprise Linux (community, Fedora project) |
Common administrative tasks
| Task | Command |
|---|---|
| Show enabled repositories | dnf repolist |
| Enable CRB | dnf config-manager --set-enabled crb |
| Install EPEL | dnf install epel-release |
| Security updates only | dnf upgrade --security |
| List updates with advisories | dnf updateinfo list |
| Undo the last transaction | dnf history undo last |
| Release version | cat /etc/redhat-release, rpm -E %rhel |
Subscription and entitlement (RHEL only)
RHEL repositories need a registered subscription (subscription-manager register). Rocky and AlmaLinux use public mirrors directly. A missing subscription usually shows up as "This system is not registered" and no repositories.
host$ cat /etc/redhat-release
Rocky Linux release 9.5 (Blue Onyx)
host$ dnf repolist
repo id repo name
appstream Rocky Linux 9 - AppStream
baseos Rocky Linux 9 - BaseOS
extras Rocky Linux 9 - Extras
host$ sudo dnf config-manager --set-enabled crb && sudo dnf install -y epel-release
host$ sudo dnf updateinfo list --security | head -3
RLSA-2026:8812 Important/Sec. openssl-1:3.2.2-6.el9_5.x86_64
host$ sudo dnf upgrade --security
host$ dnf history | head -4
Minor releases
On RHEL-family systems, dnf upgrade also moves the system to the next minor release (9.4 to 9.5, for example), because the repositories always point at the latest one. Some RHEL subscriptions offer extended update support, which pins a minor release when that's needed.
Documented example, not captured output.
How it works at runtime
RHEL / Rocky / AlmaLinux is part of Package Management → RHEL / Rocky / AlmaLinux. RHEL-family package management uses RPM as the local package format/database with DNF as the modern repository-aware solver and transaction manager; YUM may be legacy or a compatibility frontend depending on release.
Topic-specific state model. RHEL-family package management uses RPM as the local package format/database with DNF as the modern repository-aware solver and transaction manager; YUM may be legacy or a compatibility frontend depending on release.
Interpretation rule. - DNF/YUM repository state ≠ RPM installed database state.
- RPM installed ≠ service healthy.
- YUM command name ≠ legacy implementation on every modern system.
- Package signature valid ≠ package origin/policy is intended.
Quick reference
RHEL family packaging (RHEL, Rocky, AlmaLinux, CentOS Stream, Fedora): RPM packages, dnf front end, repositories in /etc/yum.repos.d/, subscription management on RHEL.
subscription-manager status; subscription-manager repos --list-enabled # RHEL
dnf repolist
dnf check-update; dnf upgrade --security
dnf history; dnf history undo 42
needs-restarting -r; needs-restarting -s
Useful repos: BaseOS and AppStream (core), CRB/CodeReady (build deps), EPEL (community extras). RHEL major versions have 10 years of support; minor releases come roughly every 6 months.
Limits and how it fails
Primary failure point. RHEL-family package evidence shows repository/solver/RPM state only within the captured transaction, but it does not show resulting service or application health.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. RHEL / Rocky / AlmaLinux owns the relationship among DNF/YUM, RPM, repository/module policy and distribution release behavior. Service and security enforcement remain in the relevant Topics.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Package Management → RHEL / Rocky / AlmaLinux. 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%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.
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.
Quick lookup tables
RHEL / Rocky / AlmaLinux operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for RHEL / Rocky / AlmaLinux.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | RHEL-family package management uses RPM as the local package format/database with DNF as the modern repository-aware solver and transaction manager; YUM may be legacy or a compatibility frontend depending on release. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin 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 chain | RHEL-family release → repository/module configuration → DNF/YUM metadata → solver + NEVRA candidate → download/signature → RPM transaction/database → scriptlets/configuration → service/policy effects → workload verification | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | RHEL-family package evidence proves repository/solver/RPM state only within the captured transaction; it does not prove resulting service or application health. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux package-management evidence can establish this proof path: RHEL-family release → repository/module configuration → DNF/YUM metadata → solver + NEVRA candidate → download/signature → RPM transaction/database → scriptlets/configuration → service/policy effects → workload verification | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured repository, solver, transaction, local package database, runtime-side-effect or workload scope. RHEL-family package evidence proves repository/solver/RPM state only within the captured transaction; it does not prove resulting service or application health. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue 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. |
RHEL / Rocky / AlmaLinux · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | RHEL / Rocky / AlmaLinux |
|---|---|
| Topic path | Package Management → RHEL / Rocky / AlmaLinux |
| Runtime state | RHEL-family package management uses RPM as the local package format/database with DNF as the modern repository-aware solver and transaction manager; YUM may be legacy or a compatibility frontend depending on release. |
| Fast checks | - Confirm distribution/release, architecture and whether yum is legacy or DNF-backed. - Capture enabled repositories, module/stream state where applicable and package candidate/origin. - Verify RPM installed NEVRA/state and transaction history after change. - Check affected service/configuration/security policy and repeat the original workload test. |
| Verification chain | RHEL-family release → repository/module configuration → DNF/YUM metadata → solver + NEVRA candidate → download/signature → RPM transaction/database → scriptlets/configuration → service/policy effects → 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 boundary | RHEL-family package evidence proves repository/solver/RPM state only within the captured transaction; it does not prove resulting service or application health. Boundary chain: repository/metadata → dependency resolution → artifact/signature → package database/file install → scriptlets → service/process reload → effective binary/config → workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |