If you’re using Ubuntu or Debian, you may be familiar with the “apt-get” command. This powerful tool lets you install and remove software packages from your computer. To see a list of all the installed packages on your system, type: apt-get list This will show you a list of all the packages currently installed on your computer. You can use this information to install new software packages, or remove unwanted ones. ..


The command we need to use is dpkg –get-selections, which will give us a list of all the currently installed packages.

The full list can be long and unwieldy, so it’s much easier to filter through grep to get results for the exact package you need. For instance, I wanted to see which php packages I had already installed through apt-get:

For extra credit, you can find the locations of the files within a package from the list by using the dpkg -L command, such as:

Now I can take a look at the gd.ini file and change some settings around…