Debianubuntu apt-get tool usage notes

Source: Internet
Author: User
At present, I am not very familiar with the use of apt-get. I only know some basic operations. now I will record them and accumulate them later. 1. sudoapt-getautoremove: delete isolated software that is no longer used by the system. focus on this first. when apt-get uninstalls the software, it only uninstalls the software we named,...
At present, I am not very familiar with the use of apt-get. I only know some basic operations. now I will record them and accumulate them later. 1. sudo apt-get autoremove: delete isolated software that is no longer used by the system. focus on this. when apt-get uninstalls the software, it only uninstalls the software we named, however, it will not uninstall the dependent libraries of the software, which will cause many software packages that we no longer need to accumulate after the system is used for a long time. These software packages are used when we install the software, apt-get intelligently installs dependent packages for us, but it is not practical now. these packages have become garbage in the system. How can we clear the garbage? in fact, it is very simple. we only need to run the sudo apt-get autoremove command, which will automatically find the isolated software package in the system, and clear it. Www.2cto.com 2. sudo apt-get-f install. intelligently download the required software package. if we use the dpkg command to install some of the software packages we downloaded. when deb software is used, the XXX packages that depend on it are often not installed. at this time, we are very depressed. Where should we find these dependent packages? if we use apt-get install to install them, what is the specific software package name? even if you know the name, installing so many software packages one by one is a huge workload. In this case, we can use the sudo apt-get-f install command, which will automatically install the required software package for running the dpkg installation command. 3. the system updates apt-get update, the apt index file apt-get upgrade, and the installed software apt-get dist-upgrade, dist-upgrade is a compensation for the upgrade function, and it can handle available updates very intelligently. Apt-get has a "smart" conflict resolution system. if necessary, it will try to upgrade the most important package without upgrading the next important package. There is a list in/etc/apt/sources. list that tells it where to find the updated software package. Www.2cto.com 4. other apt-get install fileName (software package name), which can automatically handle package conflicts apt-get remove fileName (software package name ), intelligently delete the specified software package apt-get clean, clear the local downloaded package file apt-get autoclean, autoclean and clean functions are basically the same, but the difference is that, autoclean only deletes undownloadable or rarely used packages. Thank you for your support
Related Article

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.