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