Date: Thu, 10 Oct 2002 06:06:01 +1000 (EST)
From: Lindsay
Subject: Re: Installfest - Server Configuration

On Wed, 09 Oct 2002 22:55:04 +1000 Troy Dack ( wrote

>I'm having a bit of trouble working out how to establish the mirror for
>Debian though. I've got the 3 woody iso's from gamearena and I'd like to
>try and build the apt repository from them rather than try and mirror
> (because Telstra will charge me for it).
>Could someone offer some pointers here?

I use the following method to turn sid snapshot cd's into a local mirror.

The basic method is to copy all the deb's on the cd to the apt-move cache
directory (FILECACHE=/var/cache/apt/archives) and then use apt-move move
command to do the rest.

1: cd to to the mounted cdrom

2: get a list of all the deb's on the cd
find -name *.deb -print > ~/deb/sid-cdnunber

3: remove the leading .
cut --characters=2- sid-cdnunber > sidcdnunber

4: run command "./wcdcp sid9"
wcdcp is the following small script

----------cut here---------
#! /bin/bash
# this will hopefully take a file which contains a list of
# files to copy and copy them to the /tmp directory

# first argument is the name of file list


# stdin is setup from this file as the bash read command will
# only read from stdin

exec <$filelist

# the reads one line at a time and copies the file

while read file2cp
echo $tmp1
cp $tmp1 //var/cache/apt/archives/
-----------cut here----------

5: run command " apt-move move"

The procedure shown could doubtlessly be greatly simplified
but it works for me. Hope it works for you, too.

If any further info is required just drop me a line.

Lindsay washusen (

Date: Fri, 11 Oct 2002 08:15:49 +1000
From: Troy Dack (
Subject: Re: Installfest - Server Configuration

Quoting Lindsay (

<snipped really helpful example>

Thanks, Lindsay. I ended up using something similar:

mount isos via loopback to /mnt/debian-{1,2,3}

find /mnt/debian-? -iname *.deb|xargs apt-move movefiles

I had to edit /etc/apt-move.conf and insert the appropriate APTLIST entries that apt had created in /var/lib/apt (I think that's where it was). They were rather strangely named files, lots of %20 and things like that in them. A closer look showed them to be essentially the same as the /etc/apt/sources.list entries:

deb cdrom [.....]

Now I just have to do a test install and make sure it works :)

Troy Dack