Error Codes Wiki

Linux YUM/DNF 'No Package Available' Error

Warningpackage manager

About Linux YUM/DNF 'No Package Available' Error

YUM or DNF 'No package available' error means the requested package is not found in any enabled repository on RHEL, CentOS, or Fedora systems. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: DNF is the successor to YUM on modern Fedora and RHEL 8+. The package name may differ from Ubuntu/Debian names. EPEL (Extra Packages for Enterprise Linux) provides many additional packages. Some packages are in optional or PowerTools/CRB repositories. Package may have been renamed or split in newer versions. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: Package not available in enabled repositories. EPEL repository not installed. Package name different from Debian/Ubuntu equivalent. CRB/PowerTools repository not enabled. Typo in package name. Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: Search for the correct name: dnf search keyword. Install EPEL: sudo dnf install epel-release. Enable CRB (RHEL 9/Rocky 9): sudo dnf config-manager --enable crb. Enable PowerTools (CentOS 8): sudo dnf config-manager --enable powertools. List available repos: dnf repolist all to find disabled repos with the package. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

What is EPEL?

Extra Packages for Enterprise Linux — a community repository providing packages that are not in the base RHEL/CentOS repos. Many common tools require it.

Overview

YUM or DNF 'No package available' error means the requested package is not found in any enabled repository on RHEL, CentOS, or Fedora systems.

Key Details

  • DNF is the successor to YUM on modern Fedora and RHEL 8+
  • The package name may differ from Ubuntu/Debian names
  • EPEL (Extra Packages for Enterprise Linux) provides many additional packages
  • Some packages are in optional or PowerTools/CRB repositories
  • Package may have been renamed or split in newer versions

Common Causes

  • Package not available in enabled repositories
  • EPEL repository not installed
  • Package name different from Debian/Ubuntu equivalent
  • CRB/PowerTools repository not enabled
  • Typo in package name

Steps

  1. 1Search for the correct name: dnf search keyword
  2. 2Install EPEL: sudo dnf install epel-release
  3. 3Enable CRB (RHEL 9/Rocky 9): sudo dnf config-manager --enable crb
  4. 4Enable PowerTools (CentOS 8): sudo dnf config-manager --enable powertools
  5. 5List available repos: dnf repolist all to find disabled repos with the package

Tags

linuxyumdnfpackagerhel

More in Package Manager

Frequently Asked Questions

Extra Packages for Enterprise Linux — a community repository providing packages that are not in the base RHEL/CentOS repos. Many common tools require it.