Translation(s): Dutch - English - Français - Italiano - 한국어(Korean)


Further Apt Tools:

(Note the following commands are executed from a command line interface or CLI, also known as a terminal or a console window. A root console in GNOME can most likely be found at "Applications -> System Tools-> Root Terminal", and "Applications -> System Tools-> Terminal" for a normal user console.)

Configure packages

When packages are installed, you are asked to configure them via a wizard (note: most packages don't require configuration). To reconfigure packages, do this:

1. Open a root console window
2. Type "dpkg-reconfigure <package>" where package is the name of the package

Find what package a binary belongs to

This is a really neat function of dpkg. Basically, if you want to find out what debian package a particular binary belongs to, do the following:

1. Open a console window 
2. Type "dpkg -S /bin/foo" where /bin/foo is the full path to the binary

Simulate Upgrades

With apt-get you can simulate an upgrade - that is - show which packages would be installed if you did upgrade.

1. Open a root console window
2. Type "apt-get -s upgrade"

Delete used package files

If you want to delete the package files (.deb files) you've already installed (via apt-get install) then you can do the following (and retrieve a lot of disk space!):

1. Open a root console window
2. Type "apt-get clean"

If you want to retain a local cache of the most recent versions, you may use a variation to retrieve some space:

1. Open a root console window
2. Type "apt-get autoclean"

This will clear the local repository of all the extra packages which can't be downloaded and are largely useless.