Apt-get Common Command Backup

Source: Internet
Author: User

Under Ubuntu, Apt-get is the most commonly used shell command to install, uninstall, and inspect software in the system under Ubuntu.

This article enumerates several commonly used apt commands and their parameters: Apt-cache search packagename search Package Apt-cache show PackageName   Get information about the package, such as description, size, version, and so on sudo apt-get install packagename installation package sudo Apt-get Install PackageName --reinstall Reinstall package sudo apt-get-f install repair installation (do not specify the package, will automatically resolve the broken dependencies, But it doesn't necessarily make you happy; and many of the library and software in the system have been removed, carefully used) sudo apt-get remove packagename Delete package sudo Apt-get Remove packagename --purge Delete package, including configuration file sudo apt-get update source sudo Apt-get Upgrade update installed packages sudo apt-get dist-upgrade upgrade system Apt-cache depends PackageName Learn which packages are dependent on using the package Apt-cache rdepends PackageName to see which packages are dependent on sudo apt-get build-dep packagename Installation-related compilation environment Apt-get source packagename Download source code for this package sudo apt-get clean && Amp sudo apt-get AutoClean cleans up unwanted packets sudo apt-get check checks for corrupted dependencies

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.