To List or Count Installed #RPM Packages:
If you are on a RPM-based Linux platform (such as #Redhat, #CentOS, #Fedora, #ArchLinux, Scientific Linux, etc.), here are two ways to determine the list of packages installed. Using yum:
- yum list installed. Using rpm:
rpm -qa.
yum list installed | wc -l.
rpm -qa | wc -l.
More Info > https://linuxapt.com/blog/how-to-list-installed-rpm-package-in-linux