Linux
3 April 2011 0 Comments

Finding Package Files on Ubuntu After ‘apt-get’ Installation

On Ubuntu, after you use apt-get install you usually have no idea which files were installed and where. To see all files belonging to any package use the dpkg tool:

$ dpkg -L apache2
/.
/usr
/usr/share
/usr/share/doc
/usr/share/bug
/usr/share/bug/apache2
/usr/share/bug/apache2/control
/usr/share/doc/apache2
/usr/share/bug/apache2/script

You can also list all installed packages using dpkg –list:

$ dpkg --list
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                      Version                                 Description
+++-=========================================-=======================================-============================================
ii  acpid                                     1.0.6-9ubuntu8                          Utilities for using ACPI power management
ii  adduser                                   3.110ubuntu7                            add and remove users and groups
ii  alsa-base                                 1.0.20+dfsg-1ubuntu5                    ALSA driver configuration files
ii  alsa-utils                                1.0.20-2ubuntu6                         ALSA utilities
ii  apache2                                   2.2.12-1ubuntu2.4                       Apache HTTP Server metapackage
ii  apache2-mpm-prefork                       2.2.12-1ubuntu2.4                       Apache HTTP Server - traditional non-threade
ii  apache2-utils                             2.2.12-1ubuntu2.4                       utility programs for webservers
ii  apache2.2-bin                             2.2.12-1ubuntu2.4                       Apache HTTP Server common binary files
ii  apache2.2-common                          2.2.12-1ubuntu2.4                       Apache HTTP Server common files
ii  apparmor                                  2.3.1+1403-0ubuntu27.4                  User-space parser utility for AppArmor
ii  apparmor-utils                            2.3.1+1403-0ubuntu27.4                  Utilities for controlling AppArmor
ii  apport                                    1.9.3-0ubuntu4.2                        automatically generate crash reports for deb
ii  apport-symptoms                           0.2                                     symptom scripts for apport
ii  apt                                       0.7.23.1ubuntu2                         Advanced front-end for dpkg
ii  apt-transport-https                       0.7.23.1ubuntu2                         APT https transport
ii  apt-utils                                 0.7.23.1ubuntu2                         APT utility programs
ii  aptitude                                  0.4.11.11-1ubuntu6                      terminal-based package manager
... much more ...
Tags: apt-get, , package files,