Ubuntu Common Apt-get Commands

Source: Internet
Author: User

Collection, Learning ...... 1.  APT (one of Ubuntu Linux package management tools) Apt-cache Search #--(Package search pack) Apt-cache show #--(package acquisition information about packages) , such as description, size, version, etc.) sudo apt-get install #--(Package installation Kit) sudo apt-get install #-– (package–-reinstall reinstall package) sudo apt-get-f in Stall #-– (Force install? # "-F =–fix-missing" when it is a repair installation ...) sudo apt-get remove #-– (Package delete pack) sudo apt-get remove–purge #--(Package delete packages, including delete profiles, etc.) sudo apt-get autoremove–purge # --(Package delete packages and their dependent packages + configuration files (only valid for 6.10, highly recommended)) sudo apt-get update #--update source sudo apt-get upgrade #--update installed packages sudo apt-get Dist-upgrade # ——— Upgrade the system sudo apt-get dselect-upgrade #--use dselect upgrade Apt-cache depends # ——-(package learn to use dependencies) Apt-cache Rdepen DS #--(Package understands a specific dependency? #当是查看该包被哪些包依赖吧 ...) sudo apt-get build-dep #--(Package Installation-related compilation environment) Apt-get source #--(packages download the source code for the bundle) sudo apt-get clean && sudo apt-g ET autoclean #--– cleanup download file archive && only clean up outdated packages sudo apt-get check # ——-Check if there is a corrupted dependency apt-get install : Download   and all dependent packages, Install or upgrade the package at the same time. If a package is set to hold (stop flag, it will be placed on one side (ie not be upgraded). See below for more hold details. apt-get remove [--purge] : Remove   and any other packages that depend on this package. –purge indicates that the package should be completely cleared (purged), see dpkg-p for more information. Apt-get Update: Upgrade from Debian Image Package List, if you want to install any software of the day, run at least once a day, and every time you modify the/etc/apt/sources.list, you must execute. apt-get upgrade [-u] : Upgrade all installed packages to the latest available version. Does not install new or remove old packages. If a package changes dependencies and needs to install a new package, it will not be upgraded, but is flagged as hold. Apt-get Update does not upgrade the package that is marked as hold (this is the meaning of the "stick"). See below how to manually set the package as a. I recommend using the '-u ' option at the same time because you can see which packages will be upgraded. Apt-get Dist-upgrade [-u]: Similar to apt-get upgrade, but Dist-upgrade Packages are installed and removed to meet dependencies. Therefore, it is dangerous. Apt-cache search : Search for packages and descriptions that meet  . Apt-cache show : Display   complete description. Apt-cache SHOWPKG&NBSP: Display   Many details, and relationships with other packages. Dselect, console-apt, aptitude, gnome-apt are several graphical front ends of apt (some of which have to be installed before use). Here Dselect is undoubtedly the most powerful, but also the oldest and most difficult to harness.

Ubuntu Common Apt-get 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.