ubuntu install command

sudo apt-get update updates the source
sudo apt-get install package installation package
sudo apt-get remove package Delete package
sudo apt-cache search package search Package
information sudo apt-cache show package get the package, such as description, size, version etc.
sudo apt-get install package --reinstall reinstall package
sudo apt-get -f install repair installation
sudo apt-get remove package --purge remove the package, including configuration files
sudo apt-get build-dep package related to compile and install environmental
sudo apt-get upgrade to update installed packages
sudo apt-get dist-upgrade to upgrade the system
sudo apt-cache depends package to understand the use of the package depends on those packages
sudo apt-cache rdepends package to see the package is what the package is dependent
sudo apt-get source package download the source code of the package
sudo apt-get clean && sudo apt -get autoclean clean unwanted packets
sudo apt-get check dependency check for damage

Guess you like

Origin www.cnblogs.com/liuwei-book/p/12177484.html