Cleaning Mint.

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
glore2002

Cleaning Mint.

Post by glore2002 »

Hi!
What's the best way to keep Mint clean. I mean, how to delete unneeded files, temp files, etc. In win you can use different software tools such as ccleaner, etc. I know linux is much cleaner but, if possible, I would like to be sure it is clean.

Thanks,
Glore2002.-
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Cleaning Mint.

Post by Husse »

There is not much need for this
Basically it's only the /temp folder (which you better leave untouched) and the apt cache that needs cleaning
For the apt cache use man apt-get to see the alternatives. If you have decent space you can forget about it but it grows - I have at the moment about 500 MB so it takes a while to become a problem
MagnusB
Level 6
Level 6
Posts: 1252
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Post by MagnusB »

Your home folder can be cleaned once in a while. Especially look at .thumbnails, that has a tendency to build up if you have a few pictures and movies on your computer. Other than that you can remove obsolete packages from your local repository by running:

Code: Select all

sudo aptitude autoclean
Usually don't clean out that much, but a penny saved....
EDIT:
Went searching through my old topics, found this nifty little command:

Code: Select all

du -c --max-depth=1 /home/user/.[a-zA-Z0-9_]* | sort -k1,1 -n
Change /home/user/ to your home folder. This will list all hidden folders in your home directory and sort them according to size. Then you can go through them and see if anyone needs a bit of cleaning.
Note:
Be careful, hidden folders in home usually contain configuration files, if you delete the entire folder you can loose all customization and maybe even break the application (most just rebuild the configuration to standard values though).
Last edited by MagnusB on Mon Jul 14, 2008 1:29 pm, edited 1 time in total.
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
routine

Re: Cleaning Mint.

Post by routine »

Hello,

How bout configuration files for applications that have been uninstalled? For example, I uninstalled Tomboy and later found a .tomboy folder and configuration file in my home folder. I would have thought these would have been deleted when I uninstalled.

Thanks.
MagnusB
Level 6
Level 6
Posts: 1252
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Post by MagnusB »

APT keeps configuration files, unless you ask it not to, then it installs faster if you decide to delete it. If you want to, you can remove them, just be sure they belong to applications you have deleted..
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
routine

Re: Cleaning Mint.

Post by routine »

Ah, I see. I uninstalled by right-clicking and selecting Uninstall from the mintMenu. So instead, I should have done "apt purge tomboy" from the CLI. Is there a preferred method to uninstall in Linux Mint? Thanks again for the feedback.
MagnusB
Level 6
Level 6
Posts: 1252
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Post by MagnusB »

I prefer using

Code: Select all

sudo aptitude remove name
from CLI, since that handles dependencies as well. Not sure if there is an recommended way, it is all a matter of preference. I have never used mintMenu to remove applications (even been a while since I last used mintMenu), so I can't tell you how that remove applications, you might want to try:

Code: Select all

sudo apt-get autoremove
to see if you have some uneeded libraries laying about..

As for removing configuration files, it is not really necessary, unless you keep installing and removing software. They don't really do anything with out the host application, and they are usually well below 1 MB in size.
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
routine

Re: Cleaning Mint.

Post by routine »

I understand the config files pose no harm, I just don't like droppings. :) Thanks for the tips. I'll run the autoremove.
Lantesh

Re: Cleaning Mint.

Post by Lantesh »

MagnusB wrote:

Code: Select all

sudo apt-get autoremove
to see if you have some uneeded libraries laying about..
I use this command all the time, and not for just after uninstalling something. I use it after installing updates as well, because sometimes a new update will render an existing package obsolete.
MagnusB
Level 6
Level 6
Posts: 1252
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Post by MagnusB »

Lantesh wrote:
MagnusB wrote:

Code: Select all

sudo apt-get autoremove
to see if you have some uneeded libraries laying about..
I use this command all the time, and not for just after uninstalling something. I use it after installing updates as well, because sometimes a new update will render an existing package obsolete.
aptitude makes that command obsolete, more or less, take a look at this excellent howto :D
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
Lantesh

Re: Cleaning Mint.

Post by Lantesh »

MagnusB wrote:aptitude makes that command obsolete, more or less, take a look at this excellent howto :D
Nice tutorial. I will certainly be reading it.
Locked

Return to “Beginner Questions”