The Apt-get of Linux commands

Source: Internet
Author: User

Apt-get is a simple command-line interface for downloading installation packages

Usage:

Apt-get [OPTIONS] [COMMANDS] [package_names]


OPTIONS:
-H Help Message-Q output to log-QQ does not output information, except for error-D download only (do not install or unzip the archive)-S does not actually install (Impersonation Execution command)-y assume that all inquiries are selected as-F to try to fix system-dependent damage-m if the archive cannot be located, Try to continue-U displays the list of update packages at the same time B gets the source package after compiling-V displays the detailed version number-c=? Read this profile-o=? Set custom configuration options, such as-O dir::cache=/tmp


COMMANDS:
Update to retrieve the package list upgrade the install new package Remove Remove package Autoremove automatically remove all unused packages purge remove packages and profiles source download source file Build-dep for source package configuration compile dependent D Ist-upgrade Release Upgrade Dselect-upgrade update clean clear downloaded archive According to the Dselect selection AutoClean clear the old downloaded archive file check check for corrupted dependencies


Common examples:
Apt-cache Search Package_names Searching package Apt-cache show Package_names Get the information about the package, such as description, size, version apt-get install Package_ NAMES installation package Apt-get install Package_names--reinstall        Reinstall package APT-GET-F Install package_names Repair Installation Pack Apt-get Remove Package _names Delete Package Apt-getremove package_names--purge        Delete package, including delete configuration file Apt-get Update source Apt-get upgrade update installed packages Apt-get Dist-upgrade        Upgrade System apt-get Dselect-upgrade use Dselect upgrade Apt-cache depends package_names learn to use dependency Apt-cache rdepends Package_names View the package is dependent on those packages Apt-get BUILD-DEP Package_names installation related to the compilation environment Apt-get source package_names Download the source code of the package Apt-get Clean cleans up useless packets apt-get AutoClean cleans up useless packets apt-get check to see if there is a corrupted dependency

apt-get Download the installation package in/var/cache/apt/archives

The Apt-get of Linux 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.