Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-12-2005, 12:52 PM   #1
bruno buys
Senior Member
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,511

Rep: Reputation: 46
Where are my .deb packages from /var/cache/apt/archives?

I installed sarge through netinstall and downloaded ~500MB after that (X, kde, gnome and stuff). I'd like to be able to save these packages and update only the necessary, the next time I need to do this. And that'd be soon as I have ordered a new hdd.
I went to /var/cache/apt/archives, but found only 92MB, and no X, kde or something (just xfce4 which I installed, and other minor things...). Did sarge delete those? Where can I find them? Is there any way to prevent me from downloading 500MB again?

Old 02-12-2005, 02:45 PM   #2
LQ Newbie
Registered: Jan 2005
Location: Canada
Distribution: Debian
Posts: 12

Rep: Reputation: 0
The /var/cache/apt/archive directory is meant to be temporary storage. apt-get and other package installers have a command called "clean" which deletes the contents of this directory to save space. If the packages have disappeared from this directory you probably are not getting them back.

I am not sure why you want to keep the files around unless you are installing multiple systems. For a single system you typically do not need the .deb files once they have been installed; to upgrade packages you have to download the entire upgraded package again.

If you are installing Debian on multiple machines then there are some tools that can cache your .deb files more permanently. The most useful one I have found is "apt-proxy", which transparently creates a partial mirror in some directory you create. Unfortunately apt-proxy is in a state of transition now, and if you want it you should visit to get a copy. (You want version 1; version 2 is very buggy.)

The apt-proxy page has a list of alternative tools as well. The only other one I have used is "apt-move", which is a package that does exist in the official Debian archives. Making mirrors with this package requires more manual intervention, however.

Last edited by pnijjar; 02-12-2005 at 02:46 PM.
Old 02-12-2005, 06:40 PM   #3
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
You could always try partimage, which is like Norton Ghost and make an image of your hdd. Just tried it myself for the first time, and isnt too painfull at all. At least that way you dont have to go through the whole install again and the whole setting it up how you like it.
Old 02-13-2005, 08:21 AM   #4
bruno buys
Senior Member
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,511

Original Poster
Rep: Reputation: 46
Thanks guys. I know partimage. I made a successfull backup of my home dir, but the root fs didn't boot ok. The famous 99 99 99... error. I didn't bother to fix it, just installed from scratch.
Another way would be to build a local repository, which is more adequate here, as I have a tiny server with spare disk space.
Apt-proxy sounds cool, though. I'll take a look.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing packages from local archives? Ravi72 Debian 2 09-13-2005 11:31 AM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 05:32 AM
/var/tmp/ full of .deb packages phats_O Debian 3 05-14-2005 10:06 PM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 02:49 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 07:03 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration