![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |||||
|
A Carafe of Ubuntu
![]() |
Hello everyone! So, do you ever get the feeling that your system is being flooded with a bunch of junk files that you can't get rid of? I know I do. Well, I'm going to show you a few ways to get rid of most, if not all, of those annoying junk files.
Please note : If doing any of this messes up your system, don't blame me. Everything worked flawlessly on my machine. Everthing should be beer 'n skittles for you if you follow this HOWTO step-by-step. Good luck! ================================================== ================================================== ==================== Tip #1 - Getting rid of Residual Config packages - In Synaptic Package Manger, there is a built-in feature that gets rid of old Residual Config packages. Residual Config packages are usually dependency packages that are left behind after you uninstall a package from your machine. To use this feature, go to System > Administration > Synaptic Package Manager. On the bottom left hand corner of the window, click the Status button. In the list above the Sections, Status, Search, and Custom buttons, you should see the following text: Quote:
![]() ================================================== ================================================== ==================== Tip #2 - Getting rid of partial packages - This is yet another built-in feature, but this time it is not used in Synaptic Package Manager. It is used in the Terminal. To access the Terminal, go to Applications > Accessories > Terminal. Now, in the Terminal, key in the following command (or you can just copy and paste from here): Code:
sudo apt-get autoclean ================================================== ================================================== ==================== Tip #3 - Getting rid of unnecessary locale data - For this tip, you need to download the "localepurge" package found in Synaptic Package Manager. "localepurge" is just a simple script to recover diskspace wasted for unneeded locale files and localized man pages. It will automagically be invoked upon completion of any apt installation run. To open Synaptic Package Manager, follow the instructions in Tip #1. After opening up Synaptic Package Manager, click the Sections button on the bottom left hand corner of the window, if it is not already clicked. Next, at the top of the Synaptic Package Manager window, click the Search button. In the search window, key in the following text : Quote:
Quote:
================================================== ================================================== ==================== Tip #4 - Getting rid of "orphaned" packages - For this tip, you need to download the "deborphan" package found in Synaptic Package Manager. "deborphan" finds "orphaned" packages on your system. It determines which packages have no other packages depending on their installation, and shows you a list of these packages. It is most useful when finding libraries, but it can be used on packages in all sections... To open Synaptic Package Manager, follow the instructions in Tip #1. After opening up Synaptic Package Manager, click the Sections button on the bottom left hand corner of the window, if it is not already clicked. Next, at the top of the Synaptic Package Manager window, click the Search button. In the search window, key in the following text : Quote:
Code:
sudo deborphan | xargs sudo apt-get -y remove --purge ================================================== ================================================== ==================== Tip #5 - Adding a "Find orphaned packages" to Synaptic Package Manager - This is not really much of a tip on how to get rid of junk files. It's more like adding a "deborphan" shortcut to Synaptic Package Manager so that you don't have to use the Terminal to find "orphaned" packages. Please note: You must have the "deborphan" package installed or else this will not work. To start this out, open up Synaptic Package Manager with the instructions from Tip #1. Now, at the top of the Synaptic Package Manager window, click the Settings button, followed by the Filters button. In the Filters window, on the bottom left hand corner, push the New button. You can name the new Filter if you like, but it is not necessary. I named mine "Orphaned". With your new Filter selected, in the "Status" tab on the right, click the Deselect All button. Next, check the "Orphaned" option under the "Other" category. Then click the OK button. To use this new filter, click the Custom button on the bottom left hand corner of the Synaptic Package Manager window. You should see the following text, or something similiar : Quote:
================================================== ================================================== ==================== Well, I hope all of you enjoyed my HOWTO and found it quite easy to follow. Whew, this thing took me over an hour to make! LOL! If I have made any mistakes, just let me know. Catch you later!
__________________
Microsoft gives you Windows, Linux gives you the whole house... Code:
sudo apt-get moo |
|||||
|
|
|
|
|
#2 |
|
Gee! These Aren't Roasted!
![]() Join Date: Jun 2005
Location: Madrid
Beans: 202
Ubuntu 9.10 Karmic Koala
|
"Autoclean" is not in the Ubuntu repositories, where could I find it?
__________________
http://www.tecniferio.com |
|
|
|
|
|
#3 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2004
Beans: 11
|
Re: HOWTO: Cleaning up all those unnecessary junk files...
Autoclean is an extension of the "apt-get" command.
To use it type this in the terminal: sudo apt-get autoclean Great HOWTO WackToMack, I got rid of many unnecessary language files. |
|
|
|
|
|
#4 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Oct 2005
Location: Estonia / Sweden
Beans: 2,023
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Cleaning up all those unnecessary junk files...
thanks man... i really love when someone gives a GIFT to fellow ubuntians... i'll use all of them
|
|
|
|
|
|
#5 |
|
Just Give Me the Beans!
![]() |
Re: HOWTO: Cleaning up all those unnecessary junk files...
Good howto, however I don't recommend using tip 4 because it may uninstall packages that one actually wants. For instance it tries to remove all of my gstreamer plugins.
|
|
|
|
|
|
#6 |
|
Gee! These Aren't Roasted!
![]() Join Date: Jun 2005
Location: Madrid
Beans: 202
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Cleaning up all those unnecessary junk files...
Yes, somebody replied me via private message; I understood that "autoclean" was a package instead of a parameter. But thanks, anyway!
__________________
http://www.tecniferio.com |
|
|
|
|
|
#7 |
|
Way Too Much Ubuntu
![]() Join Date: Jul 2005
Location: Vienna, Austria
Beans: 238
Kubuntu Karmic Koala (testing)
|
Re: HOWTO: Cleaning up all those unnecessary junk files...
Great HOWTO! And a big thumbs up for explaining readers how to use graphical tools instead of telling them to use the terminal.
Still, I recommend to merge tips 4 and 5 and tell users to take a look at their orphaned packages before deleting/purging them. As NMUrugbysteve already stated, people with external repos tend to have orphaned packages they acually need. Also, other packages may depend on an orphaned one. Better to use Synaptic to select the ones you no longer want. Also you get notified about dependencies to be removed and can reconsider, if need be. |
|
|
|
|
|
#8 |
|
Ubuntu Extra Shot
![]() Join Date: Nov 2005
Location: Where do I live
Beans: 330
Ubuntu 6.10 Edgy
|
Re: HOWTO: Cleaning up all those unnecessary junk files...
Great stuf, although localepurge didn't want to configure correctly. Oh well, everything else worked fine.
|
|
|
|
|
|
#9 |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: Cleaning up all those unnecessary junk files...
I rate this a truly excellent guide!
/ 5
__________________
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world" -- Albert Einstien |
|
|
|
|
|
#10 |
|
Just Give Me the Beans!
![]() Join Date: Dec 2005
Beans: 52
Ubuntu Breezy 5.10
|
Re: HOWTO: Cleaning up all those unnecessary junk files...
Thank you very much for this one, ever since I installed ubuntu I've been wondering if there's an equivalent to emerge --dep-clean (gentoo)!
![]()
__________________
Registered Linux User #363371 |
|
|
|
| Bookmarks |
| Tags |
| clean, junk |
| Thread Tools | |
| Display Modes | |
|
|