Saturday, March 26, 2011

Ubuntu: Regular cleanup maintenance

After each installation of updates etc. do the following steps for maintenance:


1) Launch terminal by going to Applications > Accessories > Terminal
2) Below are the 2 commands:
  • sudo apt-get autoclean
  • sudo apt-get autoremove

3) Since you're using sudo, enter sudo password. Depending if there are anything to be cleaned/removed, you will need to confirm by pressing y/n.


username@desktop:~$ sudo apt-get autoclean
[sudo] password for username:
Reading package lists... Done
Building dependency tree    
Reading state information... Done
username@desktop:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree    
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-2.6.35-22
0 upgraded, 0 newly installed, 1 to remove and 284 not upgraded.
After this operation, 80.1MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 133710 files and directories currently installed.)
Removing linux-headers-2.6.35-22 ...
username@desktop:~$

So, 80.1 MB of free space is now available! 

No comments:

Post a Comment