Originally Posted by leland9000
I want to find a way to list exactly what modules or software is loaded on a Linux box hopefully with version numbers and other info. I will use Windows as a bad example. In Windows, you can go to control panel and look at the add/remove programs window and get a list of exactly what applications are installed. I realize there are ways to install Windows programs so they don’t appear in this list but I am basically looking for the Linux equivalent. I have two boxes right now, one is running Ubuntu and the other box is Debian. I am NOT running a desktop environment; my goal is to set up a MySQL / Apache server environment so I am looking for something to run from the command line.
Most Linux distributions have a package manager that keeps track of evry package on your system. Both Ubuntu and Debian use the Debian package manager system so I will explain how to do it on Debian and simply say that Ubuntu is very similar.
The Debian package manager has several programs that will do what you want. You can start a gui program called synaptic. You can find synaptic on the KDE menu under system -> Synaptic Package Manager. Or you can start it from the command line by typing in synaptic. The initial screen has a window top center with a list of every porgram that you could install from any of the repositories that synaptic knows about. The ones that you actually have installed are designated with a green box. On the left side of the screen is a window where you can click on package groups which will give you subsets of the "All" list.
From the command line you can get the same information from dpkg. Type in:
dpkg -l | less