π ~1 min read
Table of contents
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.

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.

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.
Related Errors & Cross-Refs
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.