yum repolist will display the active repo list, I suspect the packages your looking for are not in the base/update/extras repositories and you may need to add additional repositories.

A good way to find out is to google search the package your looking for to get an idea of repository you need to have setup or install.

A lot of repositories do have a RPM file that will install the repository for your or a "how to" for adding the repository.


Examples below

Red Hat has made the documentation free to read
9.5.2. Setting [repository] Options

IUS repo setup
IUS Getting Started

yum repolist example:

Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: mirror.its.sfu.ca
 * extras: mirror.it.ubc.ca
 * updates: centos.mirror.rafal.ca
base                                                                                                                                                                                                                  | 3.6 kB  00:00:00     
extras                                                                                                                                                                                                                | 3.4 kB  00:00:00     
updates                                                                                                                                                                                                               | 3.4 kB  00:00:00     
(1/4): base/7/x86_64/group_gz                                                                                                                                                                                         | 166 kB  00:00:00     
(2/4): extras/7/x86_64/primary_db                                                                                                                                                                                     | 150 kB  00:00:00     
(3/4): updates/7/x86_64/primary_db                                                                                                                                                                                    | 3.6 MB  00:00:00     
(4/4): base/7/x86_64/primary_db                                                                                                                                                                                       | 5.9 MB  00:00:01     
repo id                                                                                                           repo name                                                                                                            status
base/7/x86_64                                                                                                     CentOS-7 - Base                                                                                                      9911
extras/7/x86_64                                                                                                   CentOS-7 - Extras                                                                                                     314
updates/7/x86_64                                                                                                  CentOS-7 - Updates                                                                                                    946
repolist: 11171
Answer from thebtm on Stack Exchange
🌐
Red Hat
access.redhat.com › solutions › 4500251
yum or dnf fails with "Error: Unable to find a match" when a package is missing - Red Hat Customer Portal
yum or dnf commands fail if a package is not found: # yum install telnet foo Updating Subscription Management repositories. Last metadata expiration check: 1:05:08 ago on Tue 15 Oct 2019 13:36:54 AEST. No match for argument: foo Error: Unable to find a match Previous versions of yum would simply ignore missing package and install the rest.
Top answer
1 of 3
5

yum repolist will display the active repo list, I suspect the packages your looking for are not in the base/update/extras repositories and you may need to add additional repositories.

A good way to find out is to google search the package your looking for to get an idea of repository you need to have setup or install.

A lot of repositories do have a RPM file that will install the repository for your or a "how to" for adding the repository.


Examples below

Red Hat has made the documentation free to read
9.5.2. Setting [repository] Options

IUS repo setup
IUS Getting Started

yum repolist example:

Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: mirror.its.sfu.ca
 * extras: mirror.it.ubc.ca
 * updates: centos.mirror.rafal.ca
base                                                                                                                                                                                                                  | 3.6 kB  00:00:00     
extras                                                                                                                                                                                                                | 3.4 kB  00:00:00     
updates                                                                                                                                                                                                               | 3.4 kB  00:00:00     
(1/4): base/7/x86_64/group_gz                                                                                                                                                                                         | 166 kB  00:00:00     
(2/4): extras/7/x86_64/primary_db                                                                                                                                                                                     | 150 kB  00:00:00     
(3/4): updates/7/x86_64/primary_db                                                                                                                                                                                    | 3.6 MB  00:00:00     
(4/4): base/7/x86_64/primary_db                                                                                                                                                                                       | 5.9 MB  00:00:01     
repo id                                                                                                           repo name                                                                                                            status
base/7/x86_64                                                                                                     CentOS-7 - Base                                                                                                      9911
extras/7/x86_64                                                                                                   CentOS-7 - Extras                                                                                                     314
updates/7/x86_64                                                                                                  CentOS-7 - Updates                                                                                                    946
repolist: 11171
2 of 3
4

Have you tried yum search packageName ?

I have seen similar behavior from two other causes, DNS is not working or the cache is corrupted.

On that machine can you ping a host by name? i.e. ping google.com ?

If that works, try a yum clean all and then try to install your package when it is done.

Discussions

dnf install: "Unable to find a match" while package is listed in the repos ?
Hi, looks like that this package is provided by a module which is not enabled by default. dnf module list shows all available modules. dnf module enable mod_auth_openidc enables the module which is required to find the package using dnf. dnf install mod_auth_openidc will then install your desired package. Hope this will help you :) Edit: If want to read more about modules maybe this link is something for you https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/installing_managing_and_removing_user-space_components/introduction-to-modules_using-appstream More on reddit.com
🌐 r/RockyLinux
3
4
April 27, 2022
docker - dnf cannot install local rpm file: "No package matches" - Stack Overflow
I'm trying to install an RPM file in a Docker image with the Amazon Linux 2023 parent image. This parent image only contains dnf, not yum. Specifically, I am trying to install R4.3.2 as below: FROM More on stackoverflow.com
🌐 stackoverflow.com
linux - DNF missing config-manager command - Stack Overflow
I am attempting to install dnf on my CENTOS 7 machine. Using this as my guideline I ran the first two commands of sudo yum install epel-release sudo yum install dnf and that successfully works. More on stackoverflow.com
🌐 stackoverflow.com
How to yum install all available packages and ignore those that do not exist?
“yum —skip-broken install foo bar” will skip installing anything that have missing dependencies. More on reddit.com
🌐 r/CentOS
7
5
November 29, 2019
🌐
Fedora Discussion
discussion.fedoraproject.org › ask fedora
Yum and dnf not find any package - Fedora Discussion
September 22, 2023 - yum install net-snmp Last metadata expiration check: 1:03:56 ago on Fri Sep 22 08:55:18 2023. No match for argument: net-snmp Error: Unable to find a match: net-snmp here my package repos are enabled, package mangers up to date, also working ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › troubleshoot › azure › virtual-machines › linux › yum-dnf-common-issues
Troubleshoot common issues in the yum and dnf package managers - Virtual Machines | Microsoft Learn
July 10, 2025 - This issue typically occurs if yum tries to download or access a package from a repository, but the package file or metadata that's associated with it is missing or unavailable on the server.
🌐
Reddit
reddit.com › r/rockylinux › dnf install: "unable to find a match" while package is listed in the repos ?
r/RockyLinux on Reddit: dnf install: "Unable to find a match" while package is listed in the repos ?
April 27, 2022 -

Hi everyone,

My Rocky Linux server is deployed on GCP.

An application I am trying to install requires the 'mod_auth_openidc' package.

Somehow a "dnf install mod_auth_openidc" outputs this:

output for "dnf install mod_auth_openidc"

I was a little surprised by this and checked different mirrors, and all of them seemed to have the package available, for example:

http://dl.rockylinux.org/pub/rocky/8.5/AppStream/x86_64/os/Packages/m/

mod_auth_openidc is in the repos

Meanwhile, for example, mod_auth_gssapi, which appears on the screenshot above, is listed as available:

output for 'dnf info mod_auth_gssapi'

Here's my appstream repo file, for reference.

My appstream repo file

Could anyone explain what is going on ?

🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1575157 – dnf install no packages even if some matches found
Red Hat Bugzilla – Bug 1575157 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1565647 – No match for a package that exists in the repo
August 1, 2018 - Red Hat Bugzilla – Bug 1565647 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal
Find elsewhere
🌐
DNF
dnf.readthedocs.io › en › latest › command_ref.html
DNF Command Reference — DNF @DNF_VERSION@-1 documentation
For legacy reasons (packages that didn’t do UsrMove) also /bin and /sbin prefixes are being searched: $ dnf provides zless gzip-1.9-9.fc29.x86_64 : The GNU data compression program Matched from: Filename : /usr/bin/zless · If this last step also fails, DNF returns “Error: No Matches found”.
🌐
DNF
dnf.readthedocs.io › en › latest › cli_vs_yum.html
Changes in DNF CLI compared to YUM — DNF @DNF_VERSION@-1 documentation
$ dnf install fdn-0.4.17-1.fc20.src.rpm tour-4-6.noarch.rpm Error: Will not install a source rpm package (fdn-0.4.17-1.fc20.src). The same applies for package specifications that do not match any available package. YUM will only issue a warning in this case and continue installing the “tour” package.
🌐
Reddit
reddit.com › r/fedora › can someone tell me why is this happening ? in dnf search it shows result but when i try dnf install it says unable to match. :(
r/Fedora on Reddit: can someone tell me why is this happening ? in dnf search it shows result but when i try dnf install it says unable to match. :(
May 10, 2024 - You've been given the fix but no ones properly explained the problem, its very simple, you asked dnf to install pycharm, but there's no package called pycharm, you need to use the full package name and not just part of it, ie pycharm-community, you only need to worry about the .x86_64 or .src part if you want the source file specifically, dnf will default to matching the OS architecture so it will install pycharm-community.x86_64 even if you just specify pycharm-community.
🌐
Server Fault
serverfault.com › questions › 1108767 › install-httpd-devel-on-centos8-unable-to-find-a-match-error
Install httpd-devel on centos8 -Unable to find a match error - Server Fault
... The reason is most probably that CentOS 8 reached its end of life last year and the AppStream repository that contains the httpd-devel packages does not hold any packages for CentOS 8 anymore.
🌐
FedoraForum.org
forums.fedoraforum.org › showthread.php
[SOLVED] dnf problems
No package <package> available. Error: Unable to find a match. cleaning all doesn't seem to help. anyone can help ? ... Can you give us exact command that you are using to invoke this? I am guessing something might get corrupted on unsuccessful system upgrade. Is this likely to have happened? ... first try sudo dnf clean all if that makes no difference maybe try rebuilding the rpm database?
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1802237 – dnf - misspelled or non-existent package makes dnf fail to install others
March 4, 2020 - article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords".