4 ways to clean your ubuntu machine
Everybody,who has a PC, knows what is "Working Slowly" and it's very boring thing.It's worst for developers, because every developer loves faster and faster machine, and want to keep it on that level, but not everything like you wants. Here are some ways to clean your ubuntu PC and make it faster.
1. Clean up your package installation¶
If you have installed and uninstalled a lot of applications, chances are your system is infected with a lot of dependencies files that you have absolutely no use for. Here are some useful commands to get rid of any partial package and remove any unused dependencies:
Cleaning up of partial package:
sudo apt-get autoclean
Cleaning up of the apt cache:
sudo apt-get clean
Cleaning up of any unused dependencies:
sudo apt-get autoremove
If you want to remove an installed application, you can remove it like this:
sudo apt-get autoremove application_name
2. Remove orphaned package¶
Other than the dependencies files, packages can also become orphaned when you uninstall an application. To get rid of orphan files, we can make use of gtkorphan, a graphical frontend for deborphan.
Install gtkorphan or via the terminal:
sudo apt-get install gtkorphan
3. Remove locale files¶
Unless you have a need to switch to various locales all the time, you can uninstall the unused locales and free up some amount of the storage space in your system.Install localepurge, or via the terminal:
sudo apt-get install localepurge
Once the installation is done, it will remove all locale files from your system that you have no need for.
4. Analyze your disk usage¶
The first thing that you need to do is to find out which files are consuming the large bulk of the storage space in your hard disk. Go to Applications->Accessories->Disk Usage Analyzer and click on the Scan Filesystem at the top to get it to analyze your disk usage pattern. You will be able to see instantly which files/folders are taking up the bulk.
Once you have determined the files that are taking up large storage space, you can do the following:
a) decide if you have any use of the files. If not, send them to the trash.
b) If you have no immediate use of the file, but will need to refer to it in the future, either backup to a CD/DVD or an external hard disk. If the file is too big, you may want to compress and split it into several small files for easier storage.