Cleaning Mint.

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Cleaning Mint.

Postby glore2002 on Sun Jul 13, 2008 3:48 pm

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.-
glore2002
Level 1
Level 1
 
Posts: 25
Joined: Sat Jul 12, 2008 11:36 am

Linux Mint is funded by ads and donations.
 

Re: Cleaning Mint.

Postby Husse on Sun Jul 13, 2008 5:33 pm

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19710
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Cleaning Mint.

Postby MagnusB on Sun Jul 13, 2008 7:36 pm

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
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Postby routine on Mon Jul 14, 2008 10:05 am

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.
routine
Level 1
Level 1
 
Posts: 22
Joined: Mon Jul 14, 2008 9:55 am

Re: Cleaning Mint.

Postby MagnusB on Mon Jul 14, 2008 12:14 pm

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
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Postby routine on Mon Jul 14, 2008 12:48 pm

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.
routine
Level 1
Level 1
 
Posts: 22
Joined: Mon Jul 14, 2008 9:55 am

Re: Cleaning Mint.

Postby MagnusB on Mon Jul 14, 2008 1:04 pm

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
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Postby routine on Mon Jul 14, 2008 2:18 pm

I understand the config files pose no harm, I just don't like droppings. :) Thanks for the tips. I'll run the autoremove.
routine
Level 1
Level 1
 
Posts: 22
Joined: Mon Jul 14, 2008 9:55 am

Re: Cleaning Mint.

Postby Lantesh on Mon Jul 14, 2008 10:39 pm

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.
Lantesh
Level 6
Level 6
 
Posts: 1219
Joined: Sat Apr 12, 2008 1:02 pm

Re: Cleaning Mint.

Postby MagnusB on Mon Jul 14, 2008 11:20 pm

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
MagnusB
Level 6
Level 6
 
Posts: 1255
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Cleaning Mint.

Postby Lantesh on Mon Jul 14, 2008 11:35 pm

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.
Lantesh
Level 6
Level 6
 
Posts: 1219
Joined: Sat Apr 12, 2008 1:02 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: fibonacci3, jollyjack, wilbobob and 33 guests