TeX Live and Raspbian repos

Tex Live

The “small scheme” plus a select few packages get me up to running speed, and I haven’t had mirror reliability problems before. But in the last few months, there have been sporadic outages, time-outs, and they’ve been a bother. To avoid these issues, I extended the functionality of one of my raspberry pis to also serve as a local repository for TeX Live. Here’s how.

  1. Download the tlnet folder from a mirror on to raspberry pi web server’s folder:

    rsync -auvz --delete rsync://ftp.fau.de/ctan/systems/texlive/tlnet/ /var/www/html/tlnet
    
  2. On the client computer, where TeX Live is to be installed, copy install-tl-unx.tar.gz file, unzip it, and run install-tl:

    rsync -auvz z.lo:/var/www/html/tlnet/install-tl-unx.tar.gz .
    tar -zxvf install-tl-unx.tar.gz
    cd install-tl<tab>
    ./install-tl -repository http://z.lo/tlnet
    
  3. Once installed, set tlmgr to use the local repository:

    tlmgr option repository http://z.lo/tlnet
    

where, z.lo is my raspberry pi web server. Once this is set up, then all subsequent updates or installations can be done with tlmgr.

Raspbian

Approach is the same, just different addresses. Here’s how:

  1. Download the raspbian folder from a mirror on to raspberry pi web server’s folder:

    rsync --archive --verbose --delete --delete-delay --delay-updates \
    rsync://mirror.internode.on.net/raspbian/raspbian/ /var/www/html/raspbian
    
  2. On client raspberry pi, update the source file at /etc/apt/sources.list to add the following line at the top and comment out others (note buster is the Debian version), and save the file:

    deb http://z.lo/raspbian buster main contrib non-free rpi
    
  3. Run sudo apt update and deb sources will be refreshed from the local mirror — z.lo/raspbian in this case.

Keep mirror(s) in sync regularly to have the latest upstream updates available for updating raspberry pis on your network.