yum or dnf fails with "Error: Unable to find a match" when a package is missing

Solution Verified - Updated -

Issue

  • 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.

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content