Finding what packages are installed on a Linux system
For distributions that use RPM format packages, use the command:
$ rpm -qa
You may want to pipe the output to grep, a pager, or a text file.
A: For Debian and derivative systems, the equivalent command is:
$ dpkg -l
A: For Slackware and Slackware based distributions, look in the directory