sudo apt-get command Daquan for Linux systems

Source: Internet
Author: User

  1. Use of APT (Ubuntu Linux package management tool one)

    Apt-cache Search #------(Package Finder)

    Apt-cache Show #------(package gets information about packages, such as description, size, version, etc.)

    sudo apt-get Install #------(Package installer) sudo apt-get Install #-----(Package-Reinstall reinstall packages)

    sudo apt-get-f Install #-----(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 + profiles etc (only valid for 6.10, highly recommended))

    sudo apt-get update #------Updating source

    sudo apt-get upgrade #------Update an installed package

    sudo apt-get dist-upgrade #---------Upgrade System

    sudo apt-get dselect-upgrade #------Upgrade with Dselect

    Apt-cache depends #-------(package understands usage dependencies)

    Apt-cache Rdepends #------(Package understands a specific dependency? #当是查看该包被哪些包依赖吧 ...)

    sudo apt-get BUILD-DEP #------(Package Installation-related compilation environment)

    Apt-get Source #------(Package downloads the source of the bundle)

    sudo apt-get clean && sudo apt-get AutoClean #--------Cleanup the archive of downloaded files && clean up outdated packages only

    sudo apt-get check #-------checks for corrupted dependencies

  2. Usage of Apt-get Install

    Apt-get Install <package>

    Download <package> and all dependent packages while installing or upgrading the package. If a package is set to hold (stop flag, it will be put aside (ie not be upgraded). For more hold details, see below.

  3. How to use Apt-get remove

    Apt-get Remove [--purge]

    <package> Remove <package> and any other packages that rely on this package.--purge indicates that the package should be completely cleared (purged), for more information please see dpkg-p.

  4. Usage of apt-get Update

    Apt-get Update

    Upgrade the package list from the Debian image, if you want to install any software on the day, run at least once a day, and you have to do it every time you modify the/etc/apt/sources.list.

  5. The usage of Apt-get upgrade

    Apt-get upgrade [-u]

    Upgrade so the package that has been installed is the latest available version. No new or removed old packages will be installed. If a package changes dependency and requires a new package to be installed, it will not be upgraded, but is marked as hold. Apt-get update does not upgrade packages marked for Hold ( This is the meaning of hold. See below how to manually set the package to hold. I recommend using the '-u ' option at the same time, as you can see which packages will be upgraded.

  6. The usage of Apt-get Dist-upgrade

    Apt-get Dist-upgrade [-u]

    Similar to Apt-get upgrade, except that Dist-upgrade installs and removes packages to meet dependency relationships. Therefore, it has certain danger.

  7. Usage of Apt-cache Search

    Apt-cache Search <pattern>

    Search for packages and descriptions that meet <pattern>.

  8. Usage of Apt-cache Show

    Apt-cache Show <package>

    Displays the full description of the <package>.

  9. The usage of Apt-cache showpkg

    Apt-cache showpkg <package>

    Display <package> Many details, as well as relationships with other parcels.

  10. 10

    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, and the oldest, the most difficult to steer


sudo apt-get command Daquan for Linux systems

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.