[tex-live] mirroring the texlive archive/ selectively

Zdenek Wagner zdenek.wagner at gmail.com
Wed Sep 17 16:11:38 CEST 2008


2008/9/17 Ivan Shmakov <ivan at theory.asu.ru>:
>        How do I mirror the TeXLive distribution selectively?  E. g.,
>        I'm not interested in platforms other than GNU/Linux on AMD64
>        and W32, and there also may be some packages which are of no
>        value to me, nor for the users this mirror is intended for.
>
I do not use mirrors, I do not need to keep such files permanently, I
use squid with huge cache instead. I install several computers, the
first fill the squid cache and the next computers install from the
cache.

>        It seems that texlive.tlpdb contains all the necessary
>        information to perform such a selective download, but is there a
>        tool to utilize it?
>
>        The ability to check the mirror against MD5 sums and to rebuild
>        the .tlpdb according to the selection being mirrored would also
>        be nice.
>
>        For now, I'm using something like:
>
> #!/bin/bash
> archive=http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/2008/archive/
> ## mirror arch-independent packages
> wget -b -r -l2 "$archive" --no-parent \
>    --accept=index.html \
>    --reject=\*.{alpha,amd64,doc,hppa,i386,mips,powerpc,sparc,universal,win32,x86,source}\* \
>    --accept=\*.tar.lzma
>    "$archive"
> ## mirror the binary packages
> wget -b -r -l2 "$archive" --no-parent \
>    --accept=index.html \
>    --accept=\*.{x86_64-linux,win32}.tar.lzma \
>    "$archive"
> ## at last, mirror the doc packages
> wget -b -r -l2 "$archive" --no-parent \
>    --accept=index.html \
>    --accept=\*.doc.tar.lzma \
>    "$archive"
>
>        TIA.
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz


More information about the tex-live mailing list