listing installed packages in debian

From WebHostingNeeds.com
Jump to: navigation, search

There are two ways to list all software packages installed.

  • dpkg-query -l
  • dpkg --list


dpkg -l | grep libapache

Find List of available software


Toripo01:~# dpkg-query -l 'apache*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                      Version                   Description
+++-=========================-=========================-==================================================================
un  apache-common             <none>                    (no description available)
un  apache-utils              <none>                    (no description available)
un  apache2                   <none>                    (no description available)
un  apache2-common            <none>                    (no description available)
un  apache2-modules           <none>                    (no description available)
un  apache2-mpm-event         <none>                    (no description available)
un  apache2-mpm-itk           <none>                    (no description available)
un  apache2-mpm-perchild      <none>                    (no description available)
ii  apache2-mpm-prefork       2.2.3-4+etch4             Traditional model for Apache HTTPD 2.1
un  apache2-mpm-worker        <none>                    (no description available)
ii  apache2-utils             2.2.3-4+etch4             utility programs for webservers
ii  apache2.2-common          2.2.3-4+etch4             Next generation, scalable, extendable web server
Toripo01:~#