The apt-get command parameters in Ubuntu are provided for your reference. Apt-cachesearchpackage search package apt-cacheshowpackage obtains information about the package, such as description, size, and version sudoapt-getinstallpackage installation package sudoapt-getinstallpackage -- reinstall re-installation package sudo
The apt-get command parameters in Ubuntu are provided for your reference.
Apt-cache search package
Apt-cache show package obtains package information, such as description, size, and version.
Sudo apt-get install package installation package
Sudo apt-get install package--reinstall re-installation package
Sudo apt-get-f install fix and install "-f = -- fix-missing"
The last line can be changed to sudo apt-get install-f
Sudo apt-get remove package Delete package
Sudo apt-get remove package--purge delete a package, including deleting a configuration file.
Sudo apt-get update source
Sudo apt-get upgrade updates installed packages
Sudo apt-get dist-upgrade System
Sudo apt-get dselect-upgrade using dselect
Apt-cache depends package for dependency usage
Apt-cache rdepends package is used to check which packages are dependent on this package.
Sudo apt-get build-dep package installation-related compilation environment
Apt-get source package download the source code of the package
Sudo apt-get clean & sudo apt-get autoclean clear useless packages
Sudo apt-get check whether any corrupted dependency exists