Linux
7 October 2011 0 Comments

Linux Package Manager Tips

dpkg is the software at the base of the Debian package management system. dpkg is used to install, remove, and provide information about .deb packages.

dpkg itself is a low level tool; higher level tools, such as APT, are used to fetch packages from remote locations or deal with complex package relations. Tools like aptitude or synaptic are more commonly used than dpkg on its own, as they have a more sophisticated way of dealing with package relationships and a friendlier interface.

What package is that file in?

Source: http://www.ubuntugeek.com/what-package-is-that-file-in.html

One question I get all the time is “What package is that file in?” There’s a really easy way to find out yourself. It’s called apt-file and it can search for a file in any package (installed or not). It’s really easy to use:

[sourcecode language="bash"]
$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file search autoexpect

expect-dev: usr/share/doc/expect-dev/examples/autoexpect.1.gz
expect-dev: usr/share/doc/expect-dev/examples/autoexpect.gz
expect-tcl8.3: usr/share/doc/expect-tcl8.3/examples/autoexpect
expect-tcl8.3: usr/share/doc/expect-tcl8.3/examples/autoexpect.1…

Tags: aptitude, , synaptics,
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                         

Tags: apt-get, , package files,