[SOLVED] How to find and delete unused data etc.

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 how to get help
Post Reply
manoka
Level 1
Level 1
Posts: 38
Joined: Mon Jan 31, 2011 11:39 am

[SOLVED] How to find and delete unused data etc.

Post by manoka » Fri Feb 18, 2011 7:10 am

Hello,

The "Low Disk Space" warning surely works on my Mint 9 OS.
So I would like to know how I can find and delete all the stuff that I don't need and use.

Many thanks in advance!

manoka
Last edited by manoka on Sat Feb 19, 2011 1:01 am, edited 1 time in total.

User avatar
tdockery97
Level 14
Level 14
Posts: 5064
Joined: Sun Jan 10, 2010 8:54 am
Location: Salem, Oregon
Contact:

Re: How to find and delete unused data etc.

Post by tdockery97 » Fri Feb 18, 2011 7:25 am

One way to free 300 or more megabytes of disk space is to go to the directory /var/cache/apt/archive and delete the .deb packages there. These packages are what were used to install your system packages and any packages you may have added when you set up your installation. It will do no harm to your system to delete these packages. The only downside is if you want to reinstall something it will be pulled from the repositories instead of the local cache. Since this is not a frequent event, I wouldn't consider it a big problem. I always delete my apt cache.
Peppermint OS 9

manoka
Level 1
Level 1
Posts: 38
Joined: Mon Jan 31, 2011 11:39 am

Re: How to find and delete unused data etc.

Post by manoka » Fri Feb 18, 2011 8:47 am

Thanks tdockery97!

I opened /var/cache/apt/archives and see e.g. a software package (application/x-deb) named "adobe-flashplugin ...", and "gnome-control-center ..." etc.. Are you sure it wont make any difference if this is deleted?
Couldn't it be that while surfing the net, there is also always unnecessary data added and stored, maybe like temporary files or whatever?

GSXR750L
Level 3
Level 3
Posts: 167
Joined: Fri Nov 27, 2009 9:31 pm

Re: How to find and delete unused data etc.

Post by GSXR750L » Fri Feb 18, 2011 9:01 am

You could always try using BleachBit in the Package Manager - not sure if its there for Mint 9 OS though.

User avatar
tdockery97
Level 14
Level 14
Posts: 5064
Joined: Sun Jan 10, 2010 8:54 am
Location: Salem, Oregon
Contact:

Re: How to find and delete unused data etc.

Post by tdockery97 » Fri Feb 18, 2011 9:04 am

Yes I am sure. Those packages are not the actual packages you use, they are the source for the installation of the packages (such as flash plugin). It is perfectly OK to delete them to free up space. And yes, there is a cache folder for both Firefox and Chrome/Chromium. When you open Nautilus to your home directory, you have to select View>Show Hidden Files. Open the .cache folder and you will see a Chromium folder. Open that and you will see a cache folder that when you open you can delete all the cached browser files. Maneuver thru /.mozilla/firefox and you'll find a cache folder in there also. :wink:
Peppermint OS 9

User avatar
Aging Technogeek
Level 13
Level 13
Posts: 4581
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: How to find and delete unused data etc.

Post by Aging Technogeek » Fri Feb 18, 2011 10:06 am

The easiest way to clear the /var/cache/apt/archives and other unused packages is to run these two commands in terminal

Code: Select all

sudo apt-get clean
Clears the cache file and

Code: Select all

sudo apt-get autoremove
cleans up unneeded and orphan packages left behind when other apps were removed.

A third command

Code: Select all

sudo apt-get autoclean
Clears just packages in the cache file that are no longer available in the repos and are "largely useless" in the words of the "apt-get" man page entry.

You can also install Ubuntu Tweak (http://ubuntu-tweak.com/ ). This includes a cleaner that will clean the cache, unneeded files, old kernels, unneeded config files, and outdated ppas.
Registered Linux User 483387

manoka
Level 1
Level 1
Posts: 38
Joined: Mon Jan 31, 2011 11:39 am

Re: How to find and delete unused data etc.

Post by manoka » Fri Feb 18, 2011 10:23 am

Many thanks to all!
Aging Technogeek wrote:The easiest way to clear the /var/cache/apt/archives and other unused packages is to run these two commands in terminal

Code: Select all

sudo apt-get clean
This gives me no output.
Aging Technogeek wrote:

Code: Select all

sudo apt-get autoremove
Output:

"...
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded."
Aging Technogeek wrote:

Code: Select all

sudo apt-get autoclean
Output (entire):

"Reading package lists... Done
Building dependency tree
Reading state information... Done"

User avatar
Dave68
Level 4
Level 4
Posts: 295
Joined: Wed Jun 16, 2010 1:15 pm
Location: Bolivar, Missouri

Re: How to find and delete unused data etc.

Post by Dave68 » Fri Feb 18, 2011 10:42 am

Sounds like your system is pretty clean then. :D

Take Care,
Dave
Linux User: 528038
Primary PC: Version: LMDE (201101), 32 Bit.
Alternate 1: Version: Peppermint One OS, 32 Bit.
Laptop: Version: Julia Main (10), AMD 64
Image

User avatar
Aging Technogeek
Level 13
Level 13
Posts: 4581
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: How to find and delete unused data etc.

Post by Aging Technogeek » Fri Feb 18, 2011 11:02 am

manoka,

sudo apt-get clean will not give any feedback in terminal as to function. Check the /var/cache/apt/archive file before and after running the command if you want to verify its function.

sudo apt-get autoremove is telling you that you have no orphan packages to remove at this time

sudo apt-get autoclean is not needed once sudo apt-get clean has been used. The clean command gets rid of everything, including the outdated packages autoclean would remove.

For more details on these commands and apt-get in general, open a terminal and enter

Code: Select all

 man apt-get
Registered Linux User 483387

manoka
Level 1
Level 1
Posts: 38
Joined: Mon Jan 31, 2011 11:39 am

Re: How to find and delete unused data etc.

Post by manoka » Mon Oct 10, 2011 6:39 am

GSXR750L wrote:You could always try using BleachBit in the Package Manager - not sure if its there for Mint 9 OS though.
I was able to install BleachBit via the Synaptic Package Manager.

Now I got a window with a choice for the Preferences.

Is one or more of the choices recommended(?):

"- Hide irrelevant cleaners
- Overwrite files to hide contents
- Start BleachBit with computer
"

Does this do its job automatically or is it necessary to execute manual commands (or whatever)?

User avatar
podagee
Level 5
Level 5
Posts: 791
Joined: Mon Sep 26, 2011 1:45 pm
Location: hawaii

Re: [SOLVED] How to find and delete unused data etc.

Post by podagee » Mon Oct 10, 2011 8:32 pm

did that cleaning and man it removed a bunch of stuff...thanks guys
Say it with me,"podagee,....(poh-duh-gee),"
got it?GOOD!

Toshiba Satellite P755-S5393 Intel i7
octo-core @ 2.20ghz
750gb hdd
8gb ram
Windows 8 PRO w/WMC 64bit

Post Reply

Return to “Newbie Questions”