The Software Audit Vector
When assuming administrative control of a legacy Ubuntu server, you must determine exactly what software is currently executing on the machine. You cannot rely on graphical icons; many critical applications (like databases or web servers) operate entirely invisibly in the background. To guarantee a comprehensive software audit, you must interrogate the system’s package manager and force it to dump its entire encrypted database of installed binaries.
How to List Installed Packages
The modern Ubuntu operating system relies on the Advanced Package Tool (APT) to handle all software installations. You must utilize the apt command to extract the master inventory list.
1. Open your terminal application or connect to the server via SSH.
2. Type the following straightforward command:
apt list --installed
3. Press Enter.
4. Analyzing the Output: The terminal will instantly generate a massive, chaotic wall of text. This list contains hundreds of microscopic libraries, kernel dependencies, and core system utilities, making it incredibly difficult to read manually.
5. The Surgical Filter (Best Practice): You almost never want to read the entire list. You usually want to know if one specific piece of software (like Apache or PHP) is installed. To do this, you must “pipe” the output of the APT command directly into the `grep` search utility. Type the following syntax:
apt list --installed | grep apache2
6. Press Enter. The system will silently scan the massive internal database and only print lines that contain the word “apache2”, providing an instantaneous, highly targeted software audit.