Useful commands APT
10 marzo 2008, 23:35 Debian , Shell , System , Tips & Tricks March 10, 2008, 23:35For the benefit of lazy people, report here a list of the main features provided by APT , the transmission standard software packages provided by Debian GNU / Linux is available on all distributions derived from it.
Update the sources.list repositories to pick up new packages:
$apt-get update
Upgrade a package:
$apt-get upgrade nome_pacchetto
Upgrade the entire system:
$apt-get dist-upgrade
Remove from / var / cache / apt all packages. Deb downloaded:
$apt-get clean
Remove from / var / cache / apt package only obsolete and are no longer present in the repository:
$apt-get autoclean
Installing a new package:
$apt-get install nome_pacchetto
Remove an installed package:
$apt-get remove nome_pacchetto
Remove any residual trace - configuration files, etc..
- A package previously (un) installed:
$apt-get remove --purge nome_pacchetto
Look for a package by name:
$apt-cache search nome_pacchetto
Get information on any package:
$apt-cache show nome_pacchetto
Download the sources of a package without installing it:
$apt-get source nome_pacchetto
Identify the fastest mirrors:
$apt-spy














