Previous | Contents | Next
Chapter 6: Maintenance tasks
There are few optional tasks that need to be executed by the administrator from time to time or during the initial configuration.
6.1 Local cache cleanup
Visit the report page in a browser and trigger the operation there.
6.2 Import
-
Make sure that apt-cacher-ng has valid index files in the cache. This is the tricky part. To get them right, a client needs to download them through apt-cacher-ng once. Therefore:
-
You need to configure the server and one client before doing the import. See above for instructions.
-
APT is pretty efficient on avoiding unneccessary downloads, therefore simply running "apt-get update" on the client side may be not enough.
In doubt, do:
rm /var/cache/apt/*cache.bin
rm /var/lib/apt/lists/*Packages
rm /var/lib/apt/lists/*Sources
on the client to purge APT's internal cache, and rerun "apt-get update".
-
Store copies of your .debs, .orig.tar.gz, ... somewhere in the "_import" subdirectory in the cache, ie. in /var/cache/apt-cacher/_import/. The files may be links or symlinks, does not matter. When done, apt-cacher will move those files to its own internal locations. Example:
cd /var/cache
mkdir apt-cacher-ng/_import
cp -laf apt-proxy apt-cacher /var/cache/apt-cacher-ng/_import
chown -R apt-cacher-ng apt-cacher-ng/_import
-
Visit the report page and trigger the import action there. Check the results, look for (red) error messages. If some files could not be moved around, they are either unusable or could not be removed because of missing permissions. Remove those copies from _import directory manually.
Comments to blade@debian.org
[Eduard Bloch, Tue, 20 Nov 2007 00:03:24 +0100]