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.
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 console aka terminal 2. Type "sudo dpkg-reconfigure <package>" where package is the name of the package
Find what package a binary belongs to
If you want to find out what debian package a particular binary belongs to, do the following:
1. Open a console aka terminal 2. Type "dpkg -S /bin/foo" where /bin/foo is the full path to the binary
In order to find the full path to a binary, type: which your-binary-name
Both aptitude and apt-get support the commandline switch --simulate aka -s. This allows one to see what packages would be installed, removed, upgraded, etc by a given operation, without actually doing it. E.g., to see which packages would be installed if you do an upgrade,
1. Open a console aka terminal 2. Type "sudo 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 console aka terminal 2. Type "sudo 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 console aka terminal 2. Type "sudo apt-get autoclean"
This will clear the local repository of all the extra packages which can't be downloaded and are largely useless.