Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

RHEL / Rocky / AlmaLinux

Direct answer

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.

When to use this

Use it to install, update or troubleshoot software on RHEL-family systems.

First 30 seconds

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>.

Operational verification

repos configured → metadata downloaded → dnf resolves dependencies → rpm installs → transaction recorded

Evidence · next step

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
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 to install, update or troubleshoot software on RHEL-family systems.
What next?3 suggested next steps
Child topics (this level)4
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

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 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
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Enable extra repositories deliberately (EPEL, CRB/PowerTools, AppStream modules). On RHEL check subscription-manager status. dnf history lets you review and undo transactions.

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

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), upgrade and check-update.
  • history, which lists, inspects and undoes transactions.
  • repolist and provides.
  • distro-sync, which aligns all packages with the versions in the enabled repositories.

Repository layout (RHEL 8, 9 and derivatives)

RepositoryContent
BaseOSCore operating system packages
AppStreamApplications, languages and databases, some in several versions
CRB (CodeReady Builder)Build dependencies and development packages; off by default
EPELExtra Packages for Enterprise Linux (community, Fedora project)

Common administrative tasks

TaskCommand
Show enabled repositoriesdnf repolist
Enable CRBdnf config-manager --set-enabled crb
Install EPELdnf install epel-release
Security updates onlydnf upgrade --security
List updates with advisoriesdnf updateinfo list
Undo the last transactiondnf history undo last
Release versioncat /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.

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

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.

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. 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
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. 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
rhel package managementrocky linux packagesalmalinux packagesdnf rpm relationship
Embedded reference data

Quick lookup tables

RHEL / Rocky / AlmaLinux operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for RHEL / Rocky / AlmaLinux.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateRHEL-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 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 chainRHEL-family release → repository/module configuration → DNF/YUM metadata → solver + NEVRA candidate → download/signature → RPM transaction/database → scriptlets/configuration → service/policy effects → workload verificationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryRHEL-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 evidenceCorrelated 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 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. 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 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.

RHEL / Rocky / AlmaLinux · operational reference

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

Reference boundaryRHEL / Rocky / AlmaLinux
Topic pathPackage Management → RHEL / Rocky / AlmaLinux
Runtime stateRHEL-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 chainRHEL-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 boundaryRHEL-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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?