Bug#563737: smarter cleaning of /var/lib/apt/lists
Am Dienstag, den 05.01.2010, 11:51 +1300 schrieb martin f krafft:
> Package: apt
> Version: 0.7.25
> Severity: wishlist
> Moving around a lot, I often switch my Debian mirrors.
> geo.debian.org is not really an option as that doesn't allow me to
> use internal mirrors. Whenever I switch mirrors in sources.list,
> however, /var/lib/apt/lists gets cleaned and everything has to be
> Maybe APT could check the *Release files in that directory and
> reuse existing files if they're found to be official Debian
> Package/Source lists? This would save me having to do the same s///
> replace on the directory contents that I do in sources.list, which
> is arguably not that much trouble, but it would be nice if APT did
> it for me.
I don't think that this could be done easily as the files are identified
based on hostname, port and path.
Options for you might be:
a) local apt-cacher-ng serving from localhost:3142/debian/
- the real source configured in /etc/apt-cacher-ng/backends_debian
b) using ftp.debian.org in sources.list and hacking /etc/hosts to make
it point to your favorite mirror. Works in most cases.
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.