yum or dnf fails with "Error: Unable to find a match" when a package is missing
Issue
yum
ordnf
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.
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.