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.

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In