Ubuntu tips: cleanup useless software packages in the system

Source: Internet
Author: User
How to clean up software packages in Ubuntu. If you frequently install/uninstall software packages in your system, it is necessary to clean up your system from time to time. Run the following command on the Ubuntu terminal: sudoapt-getautoremove screen output: Readingpackagelists... DoneBuildingdependencytreeReadingstateinformation... DoneThefo

How to clean up software packages in Ubuntu

If you install/uninstall your system frequently, it is necessary to clean up your system from time to time.

Run the following command on the Ubuntu terminal:

Sudo apt-get autoremove

The screen output looks like this:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
Libcommoncpp2-1.5.3-0
The following packages will be REMOVED
Libcommoncpp2-1.5.3-0
0 upgraded, 0 newly installed, 1 to remove and 29 not upgraded.
Need to get 0B of archives.
After unpacking 688kB disk space will be freed.
Do you want to continue [Y/n]?

Enter "Y" to delete these packages.

Original English:

It's worthwhile to do this every now again on your ubuntu box when you 've ve been installing and uninstalling new apps. this will go through and check which packages have been installed that are no longer needed. it will then remove them for you

Sudo apt-get autoremove

Output looks like below

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
Libcommoncpp2-1.5.3-0
The following packages will be REMOVED
Libcommoncpp2-1.5.3-0
0 upgraded, 0 newly installed, 1 to remove and 29 not upgraded.
Need to get 0B of archives.
After unpacking 688kB disk space will be freed.
Do you want to continue [Y/n]?

Here you need to select Y to remove these packages

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.