How to list installed software packages on Linux.
In Linux, you can use the following command to list the software packages installed in the system:
- List the software packages installed in a Debian or Ubuntu system using the dpkg command.
dpkg --list
- List the packages installed in a Red Hat, CentOS, or Fedora system using the rpm command.
rpm -qa
- List the software packages installed in a Red Hat, CentOS, or Fedora system using the yum command.
yum list installed
- List the packages installed in a Debian or Ubuntu system using the apt command.
apt list --installed
These commands will display all the installed packages in the system, and you can use the pipe and grep commands to filter the desired package information.