How to specify a different apt archive directory
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. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to specify a different apt archive directory
Il giorno Sun, 3 Feb 2008 00:42:06 -0800 (PST) Ravi [EMAIL PROTECTED] 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 signature.asc Description: PGP signature
Re: How to specify a different apt archive directory
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/03/08 02:42, Ravi wrote: 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. A symlink? - -- Ron Johnson, Jr. Jefferson LA USA PETA - People Eating Tasty Animals -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHpa0aS9HxQb37XmcRArbDAJwJJw/SsKLPL8yg4jjLepSLdTvoNgCfY8kf EIqnh+tKPs7eIMiOn5sxhuo= =alRv -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to specify a different apt archive directory
On Sun, Feb 03, 2008 at 12:42:06AM -0800, Ravi wrote: 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. Where do you have space? This is a good reason why /var/ shouldn't be on the / partition. Especially /var/cache (and /var/spool). Why not create a partition and mount it on /var/cache in fstab, rather than messing with the FHS? Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: How to specify a different apt archive directory
Quoth Douglas A. Tutty: On Sun, Feb 03, 2008 at 12:42:06AM -0800, Ravi wrote: 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. Where do you have space? This is a good reason why /var/ shouldn't be on the / partition. Especially /var/cache (and /var/spool). Another reason to put /var on a seperate partition is filesystem fragmentation - in Gentoo or FreeBSD, this can get really troublesome, because the compiles will totally _hose_ your fs if / or even /home are not on another partition - but even with apt's cache and all the things usually going on in /var (like logfiles, temporary files...), things can get messy enough. /var always needs its own partition, otherwise you'll see severe performance drawbacks... in Ravi's case, I would just back up everything and then re-partition correctly, or use LVM. just my 2c... Aleks signature.asc Description: Digital signature