Re: How to specify a different apt archive directory



Il giorno Sun, 3 Feb 2008 00:42:06 -0800 (PST)
Ravi <ra.ravi.rav@xxxxxxxxx> ha scritto:

Normally the packages downloaded by apt are copied to /var/cache/apt/
archives/ . But I am low on disk space for root partition. How can I
ask apt to download those files to another directory and use then from
there for later use also.

zless /usr/share/doc/apt/examples/configure-index.gz

Put this in /etc/apt/apt.conf, or /etc/apt/apt.conf.d/00yourlocalfile

Dir "/"
{
Cache "var/cache/apt/" {
Archives "archives/";
srcpkgcache "srcpkgcache.bin";
pkgcache "pkgcache.bin";
};
};

David

--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature



Relevant Pages

  • Re: How to specify a different apt archive directory
    ... But I am low on disk space for root partition. ... ask apt to download those files to another directory and use then from ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • How to specify a different apt archive directory
    ... But I am low on disk space for root partition. ... ask apt to download those files to another directory and use then from ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: I am NOT a troll
    ... > some program, go to download it, find an rpm and find dependency issues. ... Soon they might stop with apt alltogether. ... And just add instalation ... You are about to enter another dimension, ...
    (alt.os.linux.suse)
  • Re: Snow Leopard...
    ... Margolin wrote: ... to disk space. ... That makes things less confusing. ... or more confusing, because if you download a file, the reported sizes ...
    (comp.sys.mac.system)
  • Re: winXP, temp folder, low disk space.... problem
    ... disk C: capacity: 9GB, unused disk space: 901MB ... I always download to D, but it seems like the download ... TEMP = c:\windows\temp ...
    (microsoft.public.windowsxp.general)