APT-GET for common Linux commands

Source: Internet
Author: User

APT-GET for common Linux commands

What is apt-get

Advanced Packaging Tools (APT) is the software package manager for Debian and its derivative releases (such as Ubuntu. APT can automatically download, configure, and install software packages in binary or source code format, which simplifies the process of managing software on Unix systems. apt-get commands generally require root permission for execution, therefore, the sudo command is generally followed.

Good English can be usedman apt-getTo view more detailed usage of the apt-get command.

Apt-get parameter usage: (generally followed by The sudo command)
  1. Apt-get [Option] install (Installation Package) or remove (uninstall package) pkg1 [pkg2...]
  2. Apt-get [Option] source pkg1 [pkg2...]
  3. Apt-get is a simple command line interface for downloading and installing software packages. The most common commands are update and install ).
Command:
Update-reacquire package list upgrade-update install-install new package remove-remove package autoremove-automatically remove all unused package purge-remove package and configuration file source-download source code archive build-dep-configure and compile dependency dist-upgrade for source package-upgrade dselect-upgrade-update clean according to dselect-clear Downloaded archive file autoclean-clear old check the Downloaded archive file to check whether any dependency is damaged.
Option:

-H.

-Q output to log-No progress indication

-Qq does not output information, except for errors

-D. Download only-do not install or decompress the archive file

-S is not actually installed. Simulate execution command

-Y: If yes is selected for all queries, no prompt is displayed.

-F try to fix system dependency corruption

-M. If the archive cannot be located, try to continue.

-U displays the update package list at the same time.

-B. Obtain the source code package and compile it.-V displays the detailed version number.

Apt-get common instances
Apt-cache search packagename search package apt-cache show packagename get packagename information about the package, for example, apt-get install packagename installation package apt-get install packagename -- reinstall apt-get-f install fix installation "-f =-fix-missing" apt -get remove packagename Delete package apt-get remove packagename -- purge Delete package, including deleting configuration files and other apt-get update sources apt-get upgrade update installed packages apt-get dist-upgrade system apt-get dselect-upgrade use dselect to upgrade apt-cache depends packagename learn how to use apt-cache rdepends packagename to check which packages of the package depend on apt-get build-dep packagename to install the relevant compiling environment apt-get source packagename to download the source code apt of the packagename. -get clean clear useless packages apt-get autoclean clear useless packages apt-get check if any corrupted dependencies exist
Summary

In fact, most people use VLC, a famous open-source player in Linux)

1. sudo apt-get install vlc1. sudo apt-get remove vlc1. apt-get update source 1. apt-get upgrade update installed packages

This command is also available to add software sources.Sudo apt-get add repostory: [software source address]Then useapt-get updateUpdate Source

Author: penguins in Madagascar want to know the author. Visit the linux community.

Help House Original translation Channel:

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.