What do I do with .deb files on /var/cache/apt/archives?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

What do I do with .deb files on /var/cache/apt/archives?

Postby fernando_a_martin on Mon Apr 15, 2013 2:59 pm

I have mint 14 on a pc and on a netbook. Everytime I install or update something on my pc, all the downloaded packages (.deb files) remain at on /var/cache/apt/archives.
It's very useful for me. I never chose some option to do it, it came doing so out of the box. But I like it because it saves me a lot of time. I don't need to download everything again in my netbook. I just copy packages that remained at/var/cache/apt/archives to the netbook and install them using dpkg. Great!
But after that I don't need that large amount of deb files that remain on /var/cache/apt/archives and I don't know what I do with them.
Once, out of curiosity, I used dolphin as root, and removed all the deb files that were in var/cache/apt/archives and the next time I booted kde was broken and I could not log into kde anymore. I don't know if it was coincidence or not. But I never tried to clean var/cache/apt/archives manually again.
So now I ask: What do I do with .deb files that remain on /var/cache/apt/archives after installations and updtes?
fernando_a_martin
Level 1
Level 1
 
Posts: 10
Joined: Wed Feb 13, 2013 8:21 pm

Linux Mint is funded by ads and donations.
 

Re: What do I do with .deb files on /var/cache/apt/archives?

Postby tdockery97 on Mon Apr 15, 2013 3:16 pm

I believe it was coincidence. Once installed, those .deb files no longer play an active role in your system.
Image

HP Pavilion 17 Notebook, 8GB DDR3, 2.5GHZ A10-APU, Radeon HD 8650G
User avatar
tdockery97
Level 13
Level 13
 
Posts: 4886
Joined: Sun Jan 10, 2010 8:54 am
Location: Salem, Oregon

Re: What do I do with .deb files on /var/cache/apt/archives?

Postby eanfrid on Mon Apr 15, 2013 4:55 pm

If you want to do some manual cleaning in this directory, you only have to:
Code: Select all
sudo apt-get autoclean

to remove old packages no more available in repos from cache or

Code: Select all
sudo apt-get clean

to remove from cache all downloaded packages
Main desktop: Debian GNU/Linux Wheezy 64bit w/custom 3.14 longterm kernel - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
True private storage on SpiderOak
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1856
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: What do I do with .deb files on /var/cache/apt/archives?

Postby fernando_a_martin on Sat Apr 20, 2013 7:16 pm

Thaks. Very useful suggestions.
fernando_a_martin
Level 1
Level 1
 
Posts: 10
Joined: Wed Feb 13, 2013 8:21 pm


Return to Installation & Boot

Who is online

Users browsing this forum: Google Adsense [Bot] and 22 guests