📖 ~1 min read
Table of contents
Symptom & Impact
dnf install fails with no match found, and dnf repolist shows only a few or zero enabled repositories.
Environment & Reproduction
Run dnf repolist –all and subscription-manager repos –list-enabled to compare expected channels.
Root Cause Analysis
Required AppStream or BaseOS repositories are disabled manually or registration entitlement is incomplete.
Quick Triage
Enable repos with subscription-manager repos –enable= and validate in /etc/yum.repos.d/redhat.repo.
Step-by-Step Diagnosis
Capture disabled repository state before making changes for audit and rollback reference.

Solution – Primary Fix
dnf repolist shows BaseOS and AppStream enabled and package queries return results.
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
Run sudo dnf list available vim and confirm packages are listed from expected repository IDs.
Verification & Acceptance Criteria
Manage enabled repository policy centrally and enforce it with configuration management.
Rollback Plan
Disable newly enabled repos if needed with subscription-manager repos –disable=.
Prevention & Hardening
Use Ansible redhat_subscription and rhsm_repository modules to keep repo state consistent.
Related Errors & Cross-Refs
Check /var/log/rhsm/rhsm.log and dnf logs for entitlement or repository sync messages.
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
Provide subscription status, enabled repo list, and failed package names when escalating.
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.