On Thu, Feb 20, 2003 at 07:39:02AM +0100, Linux Leman Digest wrote: > On Tue, Feb 18, 2003 at 06:57:05PM +0100, Erik Rossen wrote: > > > Why are the original package lists from the CDs even necessary? Each .deb has > > enough info in its control file to rebuild the Packages lists and frankly I > > don't care how the .debs are organised, as long as they can be found > > afterwards. > > They are not. For example, my Debian CD update generation script: > > [ ... ] > > if [ $? = 0 ]; then > # Generating the Packages.gz file > (cd $DEST_PACKAGES && dpkg-scanpackages . /dev/null | gzip -9 > > Packages.gz) > > mkisofs -A "$LABEL" -r -o $OUTPUT_FILE $TMP_DIR || fail "mkisofs" > md5sum $OUTPUT_FILE > $OUTPUT_FILE.md5sum || fail "md5sum" > rm -rf $TMP_DIR > else > rm -rf $TEMPDIR > exit 1 > fi
OK, that seems to answer the question of whether or not apt-move is really necessary, but there seems to be a mis-comprehension of my problem by both you and Fred. I already knew about dpkg-scanpackages (it gets called when one does "apt-move packages") for rebuilding the Packages file. It worked fine for me already and I have been able to using my mirror for normal apt-get operations. The problem comes when trying to do an install on a completely new machine. debootstrap seems to choke when it cannot find a valid Release file in each major subsection (main, contrib, non-free) of the mirror and it refuses to use the mirror for the install. I can use it afterwards, but NOT for the initial install. My question is *not* "how do I make the Packages file?", but "how do I make the Release files?" At the limit I can write a little shell script to call md5sum on all of the Packages files and build something like dists/stable/Release: Origin: Debian Label: Debian Suite: stable Version: 3.0 Codename: woody Date: Fri, 19 Jul 2002 19:03:33 UTC Architectures: alpha arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc Components: main contrib non-free Description: Debian 3.0 Released 20th July 2002 MD5Sum: 678eab2d1d603992726f697765dadf33 3208 main/disks-alpha/current/md5sum.txt 678eab2d1d603992726f697765dadf33 3208 main/disks-alpha/3.0.23-2002-05-21/md5sum.txt 002a42ea167a6eede449472e086c0d4a 6240918 main/binary-alpha/Packages 1815a1f31a9d5613622f49cab5407e7c 1700336 main/binary-alpha/Packages.gz e061181295feeeabcd2df379e95aa349 94 main/binary-alpha/Release 036d9f86a89a86f5b1db46b963e1c1e2 1774 main/disks-arm/current/md5sum.txt 036d9f86a89a86f5b1db46b963e1c1e2 1774 main/disks-arm/3.0.23-2002-05-21/md5sum.txt aa6e9dd49434eccccb152673511ca6c0 6141671 main/binary-arm/Packages be6d465f85178d97341779ff3ca6718b 1682660 main/binary-arm/Packages.gz 37dc7628af7ce694c0009be246178406 92 main/binary-arm/Release ...etc, but I do not want to do it if there is already a well-used Debian tool for this job. It seems to me that the ftpmaster would have such a tool, no? If so, where is it? > For autoinstalling machines, you could look into FAI: they may have some > instructions for setting up mirrors. OK, I will take a look. > If you install from one CD, you usually don't need the base.tar.gz > and other things on the mirror. True, but it is nice to not have to depend on having access to a CDROM drive like, for example, when I installed Debian on my Sony Vaio notebook that has neither a CDROM nor a floppy drive. I was able to do that (and redo and redo and redo...) because I had a local mirror set up using apt-proxy that downloads and caches Release files and everything else. Very, very, convenient. -- Erik Rossen ^ OpenPGP key: 2935D0B9 [EMAIL PROTECTED] /e\ "Use GnuPG, see the http://people.linux-gull.ch/rossen --- black helicopters." -- http://www-internal.alphanet.ch/linux-leman/ avant de poser une question. Ouais, pour se désabonner aussi.