In short/tldr:

I want to create a repository containing custom packages that can be accessed and installed by TeXLive. Any complete documentation on TeXLive-compatible repositories?

Edit I'm looking to make something like MetaTeX (Here is the MetaTeX repo)

So I want to make a TeXLive repository because of reasons. That is : I want to add a repo to TeXLive that can be used for installation. As the TeXLive guide says, some pinning and such has to be done, but I'm fine with this.

The problem is that I do not know how to build up the TeXLive part of the directory structure. I do understand the TeX Directory Structure and how you'd use tar.xz-files to create this structure internally.

I've done quite a bit of research, but I still have the following questions.

  • What is the minimum requirements of the repository hosting setup? (E.g. directory listings)
  • The TeXLive Guide 2018 barely mentiones the tlpdb-file. Is this required for the repo, or only at the clients installation? If applicable: Where can I find the syntax for this?
  • I notice that all .tar.xs-files containing packages, also contain a tlpkg/tlpobj/packagename.tlpobj, which seem to be the same syntax as the tlpdb-file. It seem to contain multiple key-value pairs (see example below). I'd also like to know what key-values are required and which are optional, and some documentation for this?

Can anyone help with this?

Here is the .tar.xz info for exercisebank.

Directory structure (tar -tf exercisebank.tar.xz):


Here is the exercisebank.tlpobj

name exercisebank
category Package
revision 47483
shortdesc Creating and managing exercises, and reusing them as composed sets
relocated 1
longdesc This package makes it easier to maintain and edit your exercise
longdesc sets. Exercises are saved as separate files containing part
longdesc problems. These files can be used to make sets, and you can
longdesc cherry-pick or exclude certain part problems as you see fit.
runfiles size=5
catalogue-ctan /macros/latex/contrib/exercisebank
catalogue-date 2018-04-28 21:34:27 +0200
catalogue-license lppl1.3c
catalogue-topics exercise exam doc-templ
catalogue-version 0.1.4

Possibly helpful links:

From comments

  • 2
    I don't understand what you're asking. Insofar as what you are trying to make is a repo of TeX Live, you need to mirror the main repo, because you obviously need files which are identical. It doesn't matter what is optional and whatnot, because that's not your concern. So I'm guessing that what you're trying to do is not really provide a repo for TeX Live, but something else. However, I don't know what the else is. – cfr Jul 15 '18 at 0:48
  • 1
    I still think it's a bad idea. However, I didn't realise it was an official one. Thanks for the link. – cfr Jul 15 '18 at 16:37
  • 1
    That's not handling dependencies and conflicts. It rather means you have to handle dependencies and conflicts. That's not at all the same thing. – cfr Jul 15 '18 at 20:57
  • 1
    I have a number of packages that we use in my lab and it would be nice if they got automatically updated whenever someone did a tlmgr update. Having a repo accessible only from our intranet seems ideal. – StrongBad Jan 11 at 21:01
  • 1
    @strongbad Andreas queried how complex the repo needed to be and as far as I have looked it does seem it may need to be more complicated than necessary looking at the quoted example site git.texlive.info/tlcontrib/tree/… we can see that is composed of many nested directories (as are the CTAN repositories) A simpler approach would be to have well structured tds packages in one flat distro folder similar to installing from local network instal folder. That way it should only need them to be unpacked to the local texmf location a simple task. – user170109 Jan 16 at 4:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.