To get a list of install packages under a Debian based system use the following command: dpkg –get-selections. To narrow down the search, pipe the results into a grep statement. i.e. “dpkg –get-selections | grep sql”. This will list all of the packages installed with sql in the name.