[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Full Mirror vs apt-proxy



Fielder George Dowding <fgdowding@iceworm-enterprises.net> writes:

> Greetings all and thank you for the suggestions regarding mirroring the
> amd64 distribution.
>
> Having given some thought to the situation, I have concluded I need to
> have a full mirror. I have an external USB hard drive on which I now
> mirror both the i386 (Woody through Sid) and amd64 (Sarge through Sid).
>
> I have found that maintaining i386 installations even with a cable or
> DSL connection is all too often too time consuming which is the reason
> for the portable mirror in the first place. Also, there are two such
> installations with dial-up access which alone justifies the portable mirror.
>
> At the moment I have only my laptop to maintain, but in the coming year,
> I should have at least one amd64 server which may not be connected to
> the Internet at all. Thus, a full, portable, mirror is what I really need.
>
> Cheerio!

A full mirror is easy enough to setup. I (despite being the debmirror
maintainer) prefer reprepro for this as it allows building a single
new archive out of multiple sources (debian, debian-amd64, security).

apt-get install reprepro
cd /mnt/mirror
mkdir conf
Create config:

==> conf/distributions <==
Origin: Debian
Label: Debian
Suite: stable
Codename: sarge
Version: 3.1
Architectures: source i386 amd64
Components: main contrib non-free
UDebComponents: main
Description: Debian sarge
Update: - debian-security debian debian-amd64
SignWith: yes

Origin: Debian
Label: Debian
Suite: testing
Codename: etch
Version: 3.2
Architectures: source i386 amd64
Components: main contrib non-free
UDebComponents: main
Description: Debian etch
Update: - debian debian-amd64
SignWith: yes

Origin: Debian
Label: Debian
Suite: unstable
Codename: sid
Version: 3.3
Architectures: source i386 amd64
Components: main contrib non-free
UDebComponents: main
Description: Debian sid
Update: - debian debian-amd64
SignWith: yes


==> conf/updates <==
Architectures: source i386 mips mipsel m68k
Method: http://ftp.de.debian.org/debian
VerifyRelease: F1D53D8C4F368D5D

Name: debian-amd64
Architectures: source amd64
Components: main contrib non-free
Method: http://amd64.debian.net/debian
ListHook: /mnt/mirror/debian/conf/filter-amd64.sh
VerifyRelease: FBC60EA91B67D3C0

Name: debian-security
Architectures: source i386 amd64 mips mipsel m68k
Method: http://security.debian.org
Suite: */updates
UDebComponents: none
VerifyRelease: F1D53D8C4F368D5D
EOF


==> conf/filter-amd64.sh <==
#!/bin/sh

echo >/dev/tty "Filter-amd64: '$1' -> '$2'"

# Screwed up security updates:
# apache2 crips gtkdiskfree gpsdrive graphviz lynx weex

# Screwed up sources:
# gasql gnome-db

zcat "$1" \
| grep-dctrl -v -F MD5sum "b60c4444968b05bc16bfc15ca06ac41a" \
| grep-dctrl -v -F MD5sum "bba3d95da8ba3daa757f37beb938beab" \
| grep-dctrl -v -F MD5sum "1b0e4ddcacacdfc60b72c3771823dbde" \
| grep-dctrl -v -F MD5sum "ae61d1b0484a26c877b688dff5158b9e" \
| grep-dctrl -v -F MD5sum "97e89c81ef111c4b0f8c1d60e7f6559b" \
| grep-dctrl -v -F MD5sum "268d7abc24919e605b7f77b25366cf11" \
| grep-dctrl -v -F MD5sum "01e38a9a43c9c3c3edb0fb2389a634e7" \
| grep-dctrl -v -F MD5sum "8e3e20fef441fe0da1bc5a981b7b8bec" \
| grep-dctrl -v -F MD5sum "6bd9495ae8f18fd7a0c81a66fd0f5f38" \
| grep-dctrl -v -F MD5sum "b7c8512911f9516788672732575bd127" \
| grep-dctrl -v -F MD5sum "e02608ec367dd1bae87199100e090fae" \
| grep-dctrl -v -F MD5sum "dee2258699f4bae1029e98fd9fcec3e1" \
| grep-dctrl -v -F MD5sum "9fd3190f61ad1d80f1c13aae86f6ed92" \
| grep-dctrl -v -F MD5sum "6a5af608e0007cc026c635c6c4b576be" \
| grep-dctrl -v -F MD5sum "938334e84c183b8938d90b80f08812e0" \
| grep-dctrl -v -F MD5sum "ca9dac731128e8f09fa43b87935c79f0" \
| grep-dctrl -v -F MD5sum "bbb95485471d5ed0eb067e0eff975d8c" \
| grep-dctrl -v -F MD5sum "7e36967187ff099ea46a5bb7ca4c85a9" \
| grep-dctrl -v -F MD5sum "597d905716f7579a9a5d0114594c5810" \
| grep-dctrl -v "a7402b9e6575d8ebe74e30e0f7f0bd36" \
| grep-dctrl -v "eb4bf3b5476abfd9188d0218c372d6ea" \
>"$2"

exit 0




chmod a+x conf/filter-amd64.sh
reprepro -V -b . update
*make coffee, sleep, watch a movie*

The filer-amd64.sh removes the duplicate packages between
amd64.debian.net and security.debian.net.

MfG
        Goswin



Reply to: