In Ubuntu, apt-get almost shell command is one of the most commonly used, because he is the Ubuntu install software through Synaptic common tool command.
This article lists the common parameters of the APT command:
apt-cache search package search Package
apt-cache show package information acquired packet, as described, the size, version, etc.
sudo apt-get install package installation package
sudo apt-get install package --reinstall package reinstalled
sudo apt-get -f install repair installation
sudo apt-get remove package Delete package
sudo apt-get remove package --purge remove the package, including configuration files, etc.
sudo apt-get update update source
sudo apt-get upgrade installed packages updated
sudo apt-get dist-upgrade system upgrade
apt-cache depends package understand the use of the package depends those packages
See apt-cache rdepends package which packages the packet is dependent
sudo apt-get build-dep package related to the installation of the build environment
apt-get source package download the source code of the package
sudo apt-get clean && sudo apt-get autoclean clean up unwanted package
sudo apt-get check check dependency of damage