PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

free up space on home folder easely

Go down

free up space on home folder easely Empty Re: free up space on home folder easely

Post by jamied_uk 9th February 2011, 22:25

Google
Custom Search

* Home
* About
* Archive
* Request a Post

Tombuntu

News, Tips, and How-Tos for Ubuntu Linux
Free Disk Space from APT’s Cache
Published in August 1st, 2008
Posted by Tom in tips

Ubuntu doesn’t require a lot of disk space to install, but if you’ve installed in a virtual machine with a small virtual drive, or partitioned most of your disk for your /home, you may need to free up some space on a system occasionally.

The APT package management system keeps a cache of DEB packages in /var/cache/apt/archives. Over time this cache can grow quite large and hold a lot of packages you don’t need.

For example, I installed AWN from a repository that frequently updates to the latest development versions. As a result, /var/cache/apt/archives contained 11 different versions of the package avant-window-navigator-trunk.

It’s easy to clear APT’s cache using apt-get. The autoclean command removes packages that are definitely useless (packages that are outdated):
sudo apt-get autoclean

Running autoclean reduced the cache’s size from 378.7 MB to 293.3 MB on my main system. (85.4 MB freed.)

The clean command clears the cache entirely:
sudo apt-get clean

Running clean emptied the cache of all 378.7 MB of packages.

Clearing APT’s cache completely shouldn’t have any adverse effects other than if you reinstall a package, it will first need to be redownloaded.

[update] Commenter EarloftheWest has pointed out that Synaptic includes options for deleting downloaded packages and a button to clear the cache. These can be found in Synaptic under Settings->Preferences->Files.


rss Enjoyed this post? Subscribe to Tombuntu's RSS feed.

Share This

Related Posts

* Free Disk Space by Reducing Reserved Blocks
* Open RAR Archives in Ubuntu
* Updating CheckGmail to Fix Login Errors
* Create a Bootable USB Drive the Easy Way in Ubuntu 8.10
* Test Drive Firefox 3.1 Beta 3

13 Responses to “Free Disk Space from APT’s Cache”

1.
mkwerner says:
August 1, 2008 at 9:51 am

Nice tip Tom! I was wondering if Apt could do something like that, but never took the time to look.

Regards,
M.
Reply
2.
Alok says:
August 1, 2008 at 11:12 am

Thank you for this tip . Issuing autoclean reduced the size of my cache from 854 MB to 690 MB. But i would not recommend clean for people with slow internet connection unless you are drastically short of disk space.
Reply
3.
elbeto says:
August 1, 2008 at 1:51 pm

Don’t forget to mention the great command:

sudo-apt-get autoremove, who deletes all the orphan packages or dependencies that were left after removing an application.
I always use both of the commands together

elbeto
Reply
4.
EarloftheWest says:
August 1, 2008 at 4:17 pm

You can also change you preferences in synaptic to delete files after they have been installed and you can clean your cache from there.
Reply
5.
vinicius says:
August 1, 2008 at 4:25 pm

if you are likely to reinstall ubuntu, it’s good to first backup useful packages in apt cache with aptoncd to avoid downloading tons of updates after installation
Reply
6.
Mouth says:
August 2, 2008 at 5:59 am

“sudo apt-get install localepurge”
… also gives you a huge saving in disk space. It removes locale files for unused languages, from packages installed.
Reply
7.
Free Disk Space from APT’s Cache : HowtoMatrix says:
August 2, 2008 at 8:36 am

[...] Read more at Tombuntu [...]
Reply
8.
Jesse says:
August 2, 2008 at 12:49 pm

Where can I find that AWN repository? I’ve been repeatedly recompiling from source.
Reply
9.
Tom says:
August 3, 2008 at 6:14 pm

Jesse:
You can find the AWN repo here:
https://launchpad.net/~awn-testing/+archive
Reply
10.
budiyanto says:
August 3, 2008 at 6:22 pm

Hi,
just want to share a bit, if you have more than 1 machine, you can use these files to update the other machines. Just take a note of all the updates, then copy them to the /var/cache/apt/archives of the target machines, when ready, click update, it’ll automatically install them with no need to download the same files all over again. If it breaks, check if you have copied the correct files, if unsure, delete them then run sudo apt-get install -f from terminal. This really helps if you have low speed connection and save bandwidth.
Reply
11.
dave says:
August 3, 2008 at 11:15 pm

check this nice guide how to cleanup ubuntu system to create more space http://www.ubuntugeek.com/cleaning-up-all-unnecessary-junk-files-in-ubuntu.html
Reply
12.
Liberar espacio en disco ocupado por el caché de los APT « Conociendo Linux says:
August 25, 2008 at 3:22 am

[...] Visto en Tubuntu [...]
Reply
13.
???????? ???? ????? ??? ???? apt | ????? says:
March 6, 2010 at 3:57 am

[...] Source [...]
Reply

Leave a Reply
Click here to cancel reply.

Name

Mail (will not be published)

Website

Subscribe

*
Subscribe to Tombuntu's RSS feed

Advertisements

*

Linode

*
Tombuntu is hosted on a Linode virtual private server running Ubuntu 8.04 LTS Server Edition linode.com Virtual Linux Servers Notes from Setting Up Ubuntu Server on Linode

Top Posts

*
How to Install Google Earth in Ubuntu 10.04 Remove Ubuntu Kernels You Don’t Need Create a Bootable USB Drive the Easy Way in Ubuntu 8.10 Open RAR Archives in Ubuntu How to Install Docky in Ubuntu 9.10

Recent Entries

* Ubuntu 10.10 Released
* First Look at the Ubuntu Unity Desktop Environment
* Fix Volume Range Issue in PulseAudio
* Compiz Keyboard Shortcuts in Ubuntu 10.04
* Mark Shuttleworth Introduces Window Indicators
* Workarounds for Unrecognized Clicks in Flash Player
* How to Install Google Earth in Ubuntu 10.04
* Setting up Ubuntu 10.04 LTS
* Enable Automatic Login in Ubuntu 9.10 Server
* Send Outgoing Email with Postfix

Categories

*

Archives

*



©2010 Tombuntu
Powered by WordPress | Theme designed by Pragya.
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

free up space on home folder easely Empty Re: free up space on home folder easely

Post by jamied_uk 9th February 2011, 22:25

jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum