In this tutorial we are going to use Linux terminal to find how many packages are installed on your computer. In today’s world a systems are made up of hundreds, even thousands of packages. Generally these package are tracked and maintained by a package.
Here are the commands for checking the number of installed packages on various distro :
For Debian based distro (Ubuntu, Kubuntu, Xubuntu… , elementary os, Zorin, Linux Mint, Deepin, MX Linux ….)
Open Terminal and run command below
dpkg -l | grep "^ii" | wc -l
For Redhat based distro (CentOs, Fedora, clear os, OpenSuse …)
Open Terminal and run command below
rpm -qa | wc -l
For Arch based distro (Manjaro, Garuda Linux, EndeavourOS, RebornOS, Chakra Linux …)
Open Terminal and run command below
pacman -Q | wc -l
Output Screen shot for Linux How many packages are installed ?