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

Re: Setting up a mirror for local use



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Mar 10 Dic 2002 11:58, Lukas Ruf escribió:
> Dear all,

Hi all.

>
> is there any documentation available on how to set up a local mirror
> for Debian such that only this mirror needs to fetch the latest
> packages and everyone in our domain would fetch the packets from
> there.
>
> Has anyone already configured such a thing and would like to share
> her/his experiences with me?

I'm configuring a local mirror in my laptop in order to install Debian in 
other computers. Now I've got only unstable branch (it's what I'm using), and 
have to configure apache in order to allow other computers to get installed 
from the mirror.

I send the bash script I use to get the mirror. You can modify the script for 
your needs.

>
> Thanks in advance!
>
> wbr,
> Lukas
- -------------------------------------------BEGIN SCRIPT-----------------------
#!/bin/sh
HOST=http.us.debian.org
HOST_NONUS=linux.CSUA.berkeley.EDU
HOST_SEC=security.debian.org

DISTS="unstable"
DISTS_NONUS="unstable/non-US"
DISTS_SEC="unstable/updates"

ARCHS="i386"

MIRROR_ROOT='/debian'
MIRROR_ROOT_NONUS='/debian-non-US'
MIRROR_ROOT_SEC='/debian-security'

OPTIONS="--passive --getcontents --progress --nosource "

ADDDIRS="dists/unstable/main/disks-i386"


echo "Processing standard using $HOST"
/usr/bin/debmirror --host=$HOST \
        --dist=$DISTS --dist=main/debian-installer --adddir $ADDDIRS 
- --arch=$ARCHS $OPTIONS /home/debian/i386

echo ""

echo "Processing non-US using $HOST_NONUS"
/usr/bin/debmirror --host=$HOST_NONUS \
        --dist=$DISTS_NONUS --arch=$ARCHS $OPTIONS \
        -r /debian-non-US /home/debian/non-US

echo ""

#echo "Processing security  using $HOST_SEC"
#/usr/bin/debmirror --host=$HOST_SEC \
#        --dist=$DISTS_SEC --arch=$ARCHS $OPTIONS \
#        -r /debian-security /home/debian/security
#
#echo ""
- ---------------------------------END SCRIPT-----------------------------------

Be careful, each command MUST not be split unles you use \ character at the 
end of each line.

Debian unstable doesn't have security updates, but stable does. So, I've 
commented last block.

Hope this helps.
- -- 
- ----------------------------------+---------------------------
José Manuel Pérez Fuente          | Universidad del País Vasco
Punto Neutro EuskoNIX (UPV/EHU)   | E-mail: scxpefuj@sc.ehu.es
Plaza Elhuyar, 1 (Edif. Barriola) | Tel.....:  +34 943 018 281
20018 San Sebastián (SPAIN)       | Fax.....:  +34 943 219 306
- ----------------------------------+---------------------------

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE99c5ORRyB6LZLkhsRAlyQAJ9R9X3xpnVFUBbjWwfK10fhfD2vFACbB87w
ZTsAUKskvr0yRfrlnNEjlO8=
=BiHy
-----END PGP SIGNATURE-----



Reply to: