Page 1 of 23 12311 ... LastLast
Results 1 to 10 of 264

Thread: HOWTO: Cleaning up all those unnecessary junk files...

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Location
    Hollister, California, USA
    Beans
    82
    Distro
    Dapper Drake Testing/

    Talking HOWTO: Cleaning up all those unnecessary junk files...

    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:

    Installed
    Installed (local or obsolete)
    Not installed
    Residual config
    Click on the "Residual config" text. (If the "Residual config dialogue does not appear, that means you do not have any Residual Config packages on your machine and you can skip down to Tip #2.) Do you see the packages that popped up in the window on the right? Those are the Residual Config packages. To get rid of these pests, click on the box to the left of the package name and select "Mark for Complete Removal". After you have done that for all of the Residual Config packages, look at the top of the Synaptic Package Manger window. Do you see the green check mark with the text "Apply" right under it? Click that button, and you'll flush all those Residual Config packages down the toilet!

    ================================================== ================================================== ====================

    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
    Enter your password when prompted and press Enter. See the package names that appeared in the Terminal? Those were partial packages that have just been deleted. Say goodbye! That's it! This command deletes the not-so-fully-downloaded packages that you acquire when a package that is being downloaded is suddenly cancelled. This is my favorite little trick when it comes to getting rid of junk files.

    ================================================== ================================================== ====================

    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 :

    localepurge
    Did the "localepurge" package popup in the package window? It probably did, unless you do not have the correct Repositories. Now, click on the box next to the "localepurge" package name. Click on Mark for Installation. Now click the Apply button at the top of the window and wait for the downloading and installing of the "localepurge" package to finish. Once it is done, a new window should popup that has a bunch of abbreviations on it. for example:

    en
    fr
    po
    sp
    ka
    etc...
    You want to select the abbreviation of the language that you speak, or use with Ubuntu, ignoring the capitalized ones. For example, I speak english, so I would select the "en" abbreviation. A french speaker would select the "fr" abbreviation. So on and so forth... Then click next. All done!

    ================================================== ================================================== ====================

    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 :

    deborphan
    Did the "deborphan" package popup in the package window? It probably did, unless you do not have the correct Repositories. Now, click on the box next to the "deborphan" package name. Click on Mark for Installation. Now click the Apply button at the top of the window and wait for the downloading and installing of the "deborphan" package to finish. Once that is done, open up the Terminal. Instructions for doing that are located in Tip #2. After you have gotten the Terminal open, key in the following command (or copy and paste from here):

    Code:
    sudo deborphan | xargs sudo apt-get -y remove --purge
    Enter your password when prompted and press Enter. See the package names that appeared in the Terminal? Those were orphaned packages that have just been deleted. Say goodbye! This is my second favorite way of dealing with junk files.

    ================================================== ================================================== ====================

    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 :

    Broken
    Marked Changes
    (Whatever you named your "deborphan" Filter)
    Package with Debconf
    Search Filter
    Click on the "(Whatever you named your "deborphan Filter)" text. Do you see the packages that popped up in the window on the right? Those are the "orphaned" packages. To get rid of these buggers, click on the box to the left of the package name and select "Mark for Complete Removal". After you have done that for all of the "orphaned" packages, look at the top of the Synaptic Package Manger window. Do you see the green check mark with the text "Apply" right under it? Click that button, and you'll get rid of all the "orphaned" packages forever (Probably)!

    ================================================== ================================================== ====================

    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. #2
    Join Date
    Jun 2005
    Location
    Madrid
    Beans
    212
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Question Re: HOWTO: Cleaning up all those unnecessary junk files...

    "Autoclean" is not in the Ubuntu repositories, where could I find it?

  3. #3
    Join Date
    Feb 2009
    Beans
    6
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Cleaning up all those unnecessary junk files...

    Quote Originally Posted by Ferio View Post
    "Autoclean" is not in the Ubuntu repositories, where could I find it?

    just type "sudo apt-get autoclean" (withput "") , and it's autoclean not Autoclean [small letters].

  4. #4
    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.

  5. #5
    Join Date
    Aug 2005
    Location
    Berkley / Marquette, MI
    Beans
    71
    Distro
    Ubuntu Jaunty Jackalope (testing)

    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. #6
    Join Date
    Nov 2005
    Location
    Where do I live
    Beans
    327

    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.

  7. #7
    Join Date
    Oct 2006
    Beans
    393

    Re: HOWTO: Cleaning up all those unnecessary junk files...

    Quote Originally Posted by NMUrugbysteve View Post
    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.
    so now how do I get gstreamer back

  8. #8
    Join Date
    May 2006
    Location
    Vzla
    Beans
    Hidden!
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: Cleaning up all those unnecessary junk files...

    some1 should compile a script or a program to make this automatic
    Deviatations msnspace
    ubuntu user # 9873;Linux # 436254

  9. #9
    Join Date
    Sep 2006
    Location
    Allentown, PA; USA
    Beans
    486
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: HOWTO: Cleaning up all those unnecessary junk files...

    Quote Originally Posted by NMUrugbysteve View Post
    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.
    Install GTKorphan, which is a frontend for deborphan and you can see and select what orphaned packages to delete.

    If someone already mentioned this in this thread, sorry.

    Peace

  10. #10
    Join Date
    Feb 2008
    Location
    Missoula, MT, USA
    Beans
    Hidden!
    Distro
    Kubuntu 11.04 Natty Narwhal

    Re: HOWTO: Cleaning up all those unnecessary junk files...

    Quote Originally Posted by NMUrugbysteve View Post
    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.
    This bug continues to exist. When I opened an MP4 video clip as a test, I had to reinstall the Mediubuntu-sourced Gstreamer plug-in.
    Direct complaints and/or flames to /dev/null for faster service.
    Everyone who chanted "Drill, baby, drill!" in 2008 now has to report to the coast of the Gulf of Mexico for oil-spill cleanup duty.

Page 1 of 23 12311 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •