Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to clean up unnecessary junk files using terminal

  1. #1

    Question How to clean up unnecessary junk files using terminal

    How Clean up all those unnecessary junk files Using Terminal ?

    I know this command :
    sudo apt-get autoclean
    But if you know anything else please let us know.
    Thanks and regards
    Sharif Aly

  2. #2
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How Clean up all those unnecessary junk files Using Terminal

    What exactly do you mean by "unnecessary junk file"?
    If you're talking about about cleaning up the package system, apt-get clean and autoclean are what you want. Other commands can be found through a brief perusal of the dpkg and apt man pages.

  3. #3

    Wink Re: How Clean up all those unnecessary junk files Using Terminal

    Quote Originally Posted by cortman View Post
    What exactly do you mean by "unnecessary junk file"?
    If you're talking about about cleaning up the package system, apt-get clean and autoclean are what you want. Other commands can be found through a brief perusal of the dpkg and apt man pages.
    To clean files that is not needed, not just files of packages, like temp files and files which is not needed, mean all files.

    If you able to help, show me how you clean your system with terminal.
    Thanks and regards
    Sharif Aly

  4. #4
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to clean up unnecessary junk files using terminal

    You mean this?

  5. #5

    Re: How to clean up unnecessary junk files using terminal

    Yeah, But something that I can run from terminal, like the commend I mention.
    Thanks and regards
    Sharif Aly

  6. #6
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to clean up unnecessary junk files using terminal

    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:
    Code:
    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. If you see the packages that popped up in the window on the right, those are the Residual Config packages. To get rid of these, 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 and click the green check mark with the text "Apply" right under it. That button will flush all those Residual Config packages.

  7. #7

    Re: How to clean up unnecessary junk files using terminal

    Quote Originally Posted by slickymaster View Post
    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:
    Code:
    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. If you see the packages that popped up in the window on the right, those are the Residual Config packages. To get rid of these, 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 and click the green check mark with the text "Apply" right under it. That button will flush all those Residual Config packages.

    I am not using GUI version of Ubuntu, Server Platform ( Only Terminal ).

    That's Why I've asked.
    Thanks and regards
    Sharif Aly

  8. #8
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How to clean up unnecessary junk files using terminal

    Quote Originally Posted by sharif_aly View Post
    I am not using GUI version of Ubuntu, Server Platform ( Only Terminal ).

    That's Why I've asked.
    Getting rid of partial packages
    Code:
    sudo apt-get autoclean && apt-get autoremove
    Getting rid of "orphaned" packages:
    Code:
    sudo apt-get install deborphan
    sudo deborphan | xargs sudo apt-get -y remove --purge

  9. #9
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: How to clean up unnecessary junk files using terminal

    deborphan, cruft, debfoster, apt-get autoremove, tmpreaper (check that your /tmp filesystem isn't mounted noatime if you're planning to use this), rdfind

  10. #10

    Re: How Clean up all those unnecessary junk files Using Terminal

    Quote Originally Posted by sharif_aly View Post
    To clean files that is not needed, not just files of packages, like temp files and files which is not needed, mean all files.

    If you able to help, show me how you clean your system with terminal.
    clarify "not needed". Specific examples?

    We can't read minds.
    Windows assumes the user is an idiot.
    Linux demands proof.

Page 1 of 2 12 LastLast

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
  •