The Apt-get of Linux commands

Source: Internet
Author: User

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

How to use:

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 do not physically install (simulate Run command)-y assume that the all query option is-F to try to fix system dependency damage Try to continue-U displays the list of update packages at the same time-B gets the source code package after compiling-V shows the specific version of-c=? Read this profile-o=? Set your own defined configuration options, such as-O dir::cache=/tmp


COMMANDS:
Update again gets the package list Upgrade Update install installs the new package remove Remove package Autoremove itself out of all unused packages purge remove packages and configuration files source code files BUILD-DEP source code package configuration Compile dependent Dist-upgrade release upgrade Dselect-upgrade follow Dselect's selection to update clean clear downloaded archive AutoClean clear old downloaded archive file check check for corrupted dependencies


Frequently used instances:
Apt-cache Search Package_names Searching package Apt-cache show Package_names Get the information about the package, such as description, size, version number, etc. apt-get install Package_ NAMES installation package Apt-get install Package_names--reinstall        Another installation package apt-get-f install Package_names repair installation package 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 understand that using dependent Apt-cache rdepends Package_names View the package is dependent on those packages Apt-get BUILD-DEP package_names Installation-related compilation environment Apt-get source Package_ Names download the package source Apt-get Clean cleanup useless package apt-get AutoClean Clean the useless package apt-get check check for corrupted dependencies

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.