Under Ubuntu, Apt-get is the most commonly used shell command to install, uninstall, and inspect software in the system under Ubuntu.
This article enumerates several commonly used apt commands and their parameters: Apt-cache search packagename search Package Apt-cache show PackageName Get information about the package, such as description, size, version, and so on sudo apt-get install packagename installation package sudo Apt-get Install PackageName --reinstall Reinstall package sudo apt-get-f install repair installation (do not specify the package, will automatically resolve the broken dependencies, But it doesn't necessarily make you happy; and many of the library and software in the system have been removed, carefully used) sudo apt-get remove packagename Delete package sudo Apt-get Remove packagename --purge Delete package, including configuration file sudo apt-get update source sudo Apt-get Upgrade update installed packages sudo apt-get dist-upgrade upgrade system Apt-cache depends PackageName Learn which packages are dependent on using the package Apt-cache rdepends PackageName to see which packages are dependent on sudo apt-get build-dep packagename Installation-related compilation environment Apt-get source packagename Download source code for this package sudo apt-get clean && Amp sudo apt-get AutoClean cleans up unwanted packets sudo apt-get check checks for corrupted dependencies