List All Installed Packages with apt on Debian 9

Postat de: Cristian Gherman

In this tutorial we are going to provide you with step-by-step instructions on how to list all installed packages with apt on a Debian 9 VPS. The apt command is a simple, yet powerful command-line tool, used for performing operations such as installation of new software packages, upgrade of existing software packages, updating of the package list index, listing the installed and available packages and even upgrading the entire Debian based system. In order to list all installed packages on a server with Debian 9 installed on it, we can use the 'apt list' command: apt list –installed Output will be a long list of installed packages, so it will be easier to read if we use the less command: apt list –installed | less We can search for a specific software package or group of packages installed on the server, using the grep command. For example, to get a list of all PHP packages installed on the server, we can use the following command-line command: apt list –installed | grep -i php

Mai multe aici