Apt-get Common Commands (reproduced)

Source: Internet
Author: User
Tags root access

One, what's the Apt-get

Premium Packaging Tools (English: Advanced packaging tools, abbreviation: APT) is a package manager for Debian and its derivative distributions (e.g., Ubuntu). Apt can automatically download, configure, install binary or source-code packages, thus simplifying the process of managing software on UNIX systems, Apt-get commands typically require root access, so follow the sudo command generally.

Two, apt-get Chinese parameter

Usage:

apt-get [Options] Command apt-get [options] Install|remove pkg1 [pkg2 ...]

Apt-get [options] Source pkg1 [pkg2 ...]

Apt-get is a simple command-line interface for downloading and installing packages. The most common commands are update (update) and install (installation).

Command:

Update-Retrieve the package list again

Upgrade-Update

Install-Installs a new package

Remove-Removes the package

Autoremove-automatic removal of all unused packages

Purge-removing packages and configuration files

Source-Download source file

BUILD-DEP-Configuring compilation dependencies for source packages

Dist-upgrade-Release Version upgrade

Dselect-upgrade-Updated according to Dselect selection

Clean-Clears the downloaded archive file

AutoClean-Clean up old downloaded archived files

Check-check to see if there is a corrupted dependency

Options:

-h this Help file.

-Q Output To log-no progress indication

-QQ not output information, except for errors

-D Download only-do not install or unzip the archive file

-S is not actually installed. Simulation execution Commands

-Y assumes that all queries are selected, without prompting

-F try to fix system dependency damage

-M if the archive cannot be located, try to continue

-U displays a list of update packages at the same time

-B Get Source package compile-V Show detailed version number

-c=? Read this configuration file

-o=? Set custom configuration options, such as-O dir::cache=/tmp

Three, Apt-get common examples

Apt-cache SearchPackageName Search Packages
Apt-cache ShowPackageName Get information about a package, such as description, size, version, and more
Apt-get InstallPackageNameInstall package
Apt-get InstallPackageName--reinstall Reinstall package
Apt-get-f install fix "-F =–fix-missing"
Apt-get RemovePackageNameDelete Package
Apt-get RemovePackageName--purge Delete a package, including deleting a configuration file, etc.
Apt-get Update Source
Apt-get Upgrade Update installed packages
Apt-get Dist-upgrade Upgrade System
Apt-get Dselect-upgrade using Dselect upgrade
Apt-cache dependsPackageNameUnderstanding the use of dependencies
apt-cache rdepends  packagename   is to see which packages the package is dependent on
 packagename < Span class= "Apple-converted-space" >  installation related compilation environment
apt-get Source  packagename < Span class= "apple-converted-space" >  download the source code of the package
apt-get clean cleans up useless packages
apt-get AutoClean Cleanup of useless packages
apt-get check check for corrupted dependencies

Apt-get Common Commands (reprinted)

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.