Apt-Get update -- run this command after modifying/etc/APT/sources. List or/etc/APT/preferences. In addition, you need to regularly run this command to ensure that your package list is up-to-date.
Apt-Get install packagename -- install a new package (see aptitude below) apt-Get remove packagename -- uninstall an installed package (keep the configuration document) apt-Get -- purge remove packagename -- uninstall an installed package (delete configuration document) dpkg -- force-all -- purge packagename some software is hard to uninstall, it also stops other software applications and can be used, but it is a little risky. Apt-Get autoclean apt will back up installed or unloaded software on the hard disk, so if space is required, this command can delete the software you have deleted. APT-Get clean will also delete the backup of the installed software, but this will not affect the use of the software. Apt-Get upgrade -- Update any installed software package apt-Get dist-upgrade -- upgrade the system to the new version apt-cache search string -- search the package string dpkg-l package-in the package list- name-pattern -- list any software packages that match the pattern. If you do not know the full name of the software package, you can use "* package-name-pattern *". Aptitude-carefully check installed or available software packages. Similar to Apt-Get, aptitude can be called through command lines, but it 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. Apt-Cache showpkg pkgs -- displays the package information. Apt-Cache dumpavail -- print the list of available packages. Apt-Cache show pkgs -- displays Software Package records, similar to dpkg-print-avail. Apt-Cache pkgnames -- print the name of any package in the package list. Dpkg-s file -- this document belongs to the installed software package. Dpkg-l package -- list any documents in the software package.