# apt-get update--Run the command after modifying/etc/apt/sources.list or/etc/apt/preferences. In addition, you need to run this command regularly to ensure that your package list is up-to-date.
# Apt-get Install packagename--installs a new package (see aptitude below)
# apt-get Remove packagename--Uninstall an installed package (keep config file)
# apt-get--purge Remove packagename--Uninstall an installed package (delete config file)
# dpkg--force-all--purge PackageName Some software is difficult to uninstall, but also to prevent the application of other software, you can use this, but a bit risky.
# Apt-get AutoClean Apt will back up the installed or unloaded software on the hard drive, so if you need space, you can let this command to delete the software you have deleted
# apt-get Clean This command will also remove the backup of the installed software, but this will not affect the use of the software.
# apt-get upgrade--Update all installed packages
# Apt-get dist-upgrade--Upgrade the system to a new version
# Apt-cache Search string--searching for strings in the package list
# dpkg-l package-name-pattern--lists all packages that match the pattern. If you do not know the full name of the package, you can use "*package-name-pattern*".
# aptitude--Detailed view of installed or available packages. Similar to Apt-get, aptitude can be called by command-line mode, but only for certain commands-the most common are installation and uninstallation commands. Since aptitude has more information than apt-get, it can be said to be more suitable for installation and uninstallation.
# Apt-cache showpkg pkgs--displays package information.
# apt-cache dumpavail--Print the list of available packages.
# Apt-cache Show pkgs--displays package records, similar to Dpkg–print-avail.
# Apt-cache pkgnames--The name of all packages in the print packages list.
# dpkg-s file--This file belongs to which installed package.
# dpkg-l package--lists all files in the package.
# Apt-file Search filename--finds packages that contain specific files (not necessarily installed), and the file names contain the specified string. The Apt-file is a standalone package. You must first install it using the Apt-get install and then run Apt-file update. If apt-file search filename outputs too much content, you can try using Apt-file search FileName | Grep-w filename (shows only those filenames where the specified string appears as the complete word) or a similar method, for example: Apt-file search FileName | Grep/bin/(it is helpful to show only files that are located in folders such as/bin or/usr/bin, if you are looking for a specific executable file).
Apt-get Update system software package updates
Go Ubuntu Software Installation, find, uninstall--apt-get, Apt-cache command Security