How to list the number of packages in a repository using dnf repolist?

Solution Verified - Updated -

Issue

  • In RHEL 7, yum repolist displays the number of packages in a repository.
  • On some RHEL 8 instances, yum repolist or dnf repolist does not display the number of packages in a repository.
  • On RHEL 9, yum repolist or dnf repolist does not display the number of packages in a repository.

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8

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