Linux apt Operation commands

Source: Internet
Author: User

Apt-cache

This command is used to search for software in APT's package cache. In simple terms, it is used to search for packages, collect package information, and use it to search for software that can be installed on Ubuntu or Debian.

$APT-cache Search Package

$APT-cache Show package for information about packages, such as description, size, version, etc.

Apt-get

This command is a command managed by the Operations Resources department.

$sudo Apt-get Install Package

$sudo Apt-get Install package--reinstall Reinstall packages

$sudo apt-get-f Install repair installation

$sudo Apt-get Remove Package

$sudo apt-get Remove Package--purge Delete packages, including configuration files, etc.

$sudo apt-get Update Source

$sudo apt-get upgrade to update installed packages

$sudo apt-get Dist-upgrade Upgrade System

$apt-cache depends package Learn about the packages that are dependent on the package

$APT-cache Rdepends package to see which packages are dependent on the packages

$sudo apt-get BUILD-DEP Package Installation-related compilation environment

$APT-get Source Package to download the source code for the bundle

$sudo apt-get clean && sudo apt-get autoclean cleanup of useless packages

$sudo Apt-get Check to see if there is a corrupted dependency

Linux apt Operation commands

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.