How to list the number of packages in a repository using dnf repolist?
Issue
- In RHEL 7,
yum repolistdisplays the number of packages in a repository. - On some RHEL 8 instances,
yum repolistordnf repolistdoes not display the number of packages in a repository. - On RHEL 9,
yum repolistordnf repolistdoes not display the number of packages in a repository.
Environment
- Red Hat Enterprise Linux (RHEL)
- 8
- 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.