πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

dnf cannot find packages and repolist is empty or missing expected BaseOS/AppStream entries.

Environment & Reproduction

System is not registered, auto-attach failed, or required repositories are disabled.

Root Cause Analysis

Run: sudo subscription-manager status and sudo subscription-manager repos –list-enabled.

Quick Triage

Confirm host time sync with chronyd and check that RHSM endpoints are reachable.

Step-by-Step Diagnosis

Use status output to verify the system is subscribed and entitled.

Illustrative mockup for rhel-9 β€” rhel9-subscription-status-01.webp
subscription-manager status output showing unentitled system β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Enable required channels and review enabled list before running dnf.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for rhel-9 β€” rhel9-repos-enable-02.webp
Enabling BaseOS and AppStream repositories β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Register and attach: sudo subscription-manager register –auto-attach.

Verification & Acceptance Criteria

Enable repos: sudo subscription-manager repos –enable=rhel-9-for-x86_64-baseos-rpms –enable=rhel-9-for-x86_64-appstream-rpms.

Rollback Plan

Run: sudo dnf clean all && sudo dnf makecache to refresh package metadata.

Prevention & Hardening

Check: sudo dnf repolist and install test package with dnf install -y tree.

Document required repository IDs and apply them through configuration management.

Related tutorial: View the step-by-step tutorial for rhel-9.

View all rhel-9 tutorials on the Tutorials Hub β†’

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Disable accidental channels with subscription-manager repos –disable=.

Need Expert Help?

If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β€” we respond within one business day.