Apt-cachesearchpackage search package apt-cacheshowpackage obtains information about the package, such as description, size, and version sudoapt-getinstallpackage installation package sudoapt-geti
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"
Sudo apt-get remove package uninstall an installed software package (keep the configuration file) sudo apt-get check to check for any corrupted Dependencies
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 Kernel
Sudo apt-get dselect-upgrade using dselect
Sudo apt-get build-dep package installation-related compilation environment
Sudo apt-get source package download the source code of the package
Sudo apt-get autoclean apt will back up installed or unloaded software on the hard disk. If you need space, you can run this command to delete the software you have deleted.
Sudo apt-get clean & sudo apt-get autoclean clear useless packages
Sudo apt-cache depends package for dependency usage
Sudo apt-cache rdepends package is used to view which packages depend on this package.
Sudo apt-cache search package search the package name in the package list
Suco apt-cache show package displays the package information.
Apt-cache dumpavail prints a list of available software packages.
Which package does the dpkg-S file belong.
Dpkg-L package lists all files in the package.
Dpkg-force-all-purge packagename some software is difficult to uninstall, and it also prevents other software applications, you can use this
Dpkg-l package-name-pattern lists all software packages that match the pattern. If you do not know the full name of the software package, you can use "* package-name-pattern *"
Apt-file search filename searches for software packages containing specific files (not necessarily installed). The file names contain the specified strings. Apt-file is an independent software package. You must first install apt-get install and then run apt-file update. If apt-file search filename outputs too much content, you can try to use apt-file search filename | grep-w filename (only show the names of the complete words in the specified string) or similar methods, such: apt-file search filename | grep/bin/(only files in folders such as/bin or/usr/bin are displayed. If you are looking for a specific execution file, this is helpful ). Aptitude-view installed or available software packages in detail. Similar to apt-get, aptitude can be called through the command line, but is limited to some commands-the most common commands are installation and uninstallation. Because aptitude knows more information than apt-get, it is more suitable for installation and uninstallation.
Sudo apt-get autoclean -- run this command regularly to clear the. deb files of uninstalled software packages. In this way, you can release a large amount of disk space. If your requirements are urgent, you can use apt-get clean to release more space. This command will delete the. deb file that has installed the software package. In most cases, you will not use these. debs files.