How to list the number of packages in a repository using dnf repolist?
Issue
- In RHEL 7,
yum repolist
displays the number of packages in a repository. - On some RHEL 8 instances,
yum repolist
ordnf repolist
does not display the number of packages in a repository. - On RHEL 9,
yum repolist
ordnf 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.