Ubuntu aptitude command usage Summary

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.