Minimal TeXLive installation












3















I'm building a script for a CI to get a docker image with minimal distribution of Texlive possible, I specifically want to avoid pulling 5 Gb of texlive-full everytime I need this docker image.



Right now I see this script as




  1. install texlive-something

  2. tlmgr install latexmk

  3. tlmgr install texliveonfly


  4. texliveonfly -c latexmk -a "-pdf -f -synctex=0" myFile.tex (install missing tex packages and compile with latexmk)

  5. deploy results and cache the tex-related part of the image.


Which package should I chose for texlive-something so that these steps work? Thanks in advance.



edit



It seems that the word minimal can lead to some confusion. In this case it means (for a package)




  1. Has a set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) that would allow me to compile an empty document. Should I need some other binaries, I'm ok with adding this dependencies by hand


  2. Contains a minimal set of LaTeX packages so that an empty document would compile. If I understand correctly, most other packages will be handled by texliveonfly (barring some esoteric cases, of course, but that can be handled manually, too).



In other words, minimal in terms of total disk space under the hypothesis that an empty document compiles using the instruments I mentioned.










share|improve this question

























  • You can say that "minimal" is texlive with nothing more... And it is not even minimal . Anything more is a matter of taste and opinion based... But I gave an answer by my experience with the packages that I always have to install (math is a mast for me anyway... but texlive users love math and if not... have to)

    – koleygr
    Oct 20 '17 at 13:12











  • I also think that in different linux distros the packages are not exactly the same... (Just noticing for anyone who will see this question) [But this could be because of different texlive releases... not sure... Just happened to me before]

    – koleygr
    Oct 20 '17 at 13:16






  • 1





    This heavily depends on what you want to use the installation for.

    – samcarter
    Oct 20 '17 at 13:22











  • @samcarter could you elaborate?

    – TZakrevskiy
    Oct 20 '17 at 13:25











  • You are talking about empty files (I suppose you mean "hello world" latex files)... and as far as I know just the package texlive is enough (and much more than enough for this)

    – koleygr
    Oct 20 '17 at 13:27
















3















I'm building a script for a CI to get a docker image with minimal distribution of Texlive possible, I specifically want to avoid pulling 5 Gb of texlive-full everytime I need this docker image.



Right now I see this script as




  1. install texlive-something

  2. tlmgr install latexmk

  3. tlmgr install texliveonfly


  4. texliveonfly -c latexmk -a "-pdf -f -synctex=0" myFile.tex (install missing tex packages and compile with latexmk)

  5. deploy results and cache the tex-related part of the image.


Which package should I chose for texlive-something so that these steps work? Thanks in advance.



edit



It seems that the word minimal can lead to some confusion. In this case it means (for a package)




  1. Has a set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) that would allow me to compile an empty document. Should I need some other binaries, I'm ok with adding this dependencies by hand


  2. Contains a minimal set of LaTeX packages so that an empty document would compile. If I understand correctly, most other packages will be handled by texliveonfly (barring some esoteric cases, of course, but that can be handled manually, too).



In other words, minimal in terms of total disk space under the hypothesis that an empty document compiles using the instruments I mentioned.










share|improve this question

























  • You can say that "minimal" is texlive with nothing more... And it is not even minimal . Anything more is a matter of taste and opinion based... But I gave an answer by my experience with the packages that I always have to install (math is a mast for me anyway... but texlive users love math and if not... have to)

    – koleygr
    Oct 20 '17 at 13:12











  • I also think that in different linux distros the packages are not exactly the same... (Just noticing for anyone who will see this question) [But this could be because of different texlive releases... not sure... Just happened to me before]

    – koleygr
    Oct 20 '17 at 13:16






  • 1





    This heavily depends on what you want to use the installation for.

    – samcarter
    Oct 20 '17 at 13:22











  • @samcarter could you elaborate?

    – TZakrevskiy
    Oct 20 '17 at 13:25











  • You are talking about empty files (I suppose you mean "hello world" latex files)... and as far as I know just the package texlive is enough (and much more than enough for this)

    – koleygr
    Oct 20 '17 at 13:27














3












3








3


2






I'm building a script for a CI to get a docker image with minimal distribution of Texlive possible, I specifically want to avoid pulling 5 Gb of texlive-full everytime I need this docker image.



Right now I see this script as




  1. install texlive-something

  2. tlmgr install latexmk

  3. tlmgr install texliveonfly


  4. texliveonfly -c latexmk -a "-pdf -f -synctex=0" myFile.tex (install missing tex packages and compile with latexmk)

  5. deploy results and cache the tex-related part of the image.


Which package should I chose for texlive-something so that these steps work? Thanks in advance.



edit



It seems that the word minimal can lead to some confusion. In this case it means (for a package)




  1. Has a set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) that would allow me to compile an empty document. Should I need some other binaries, I'm ok with adding this dependencies by hand


  2. Contains a minimal set of LaTeX packages so that an empty document would compile. If I understand correctly, most other packages will be handled by texliveonfly (barring some esoteric cases, of course, but that can be handled manually, too).



In other words, minimal in terms of total disk space under the hypothesis that an empty document compiles using the instruments I mentioned.










share|improve this question
















I'm building a script for a CI to get a docker image with minimal distribution of Texlive possible, I specifically want to avoid pulling 5 Gb of texlive-full everytime I need this docker image.



Right now I see this script as




  1. install texlive-something

  2. tlmgr install latexmk

  3. tlmgr install texliveonfly


  4. texliveonfly -c latexmk -a "-pdf -f -synctex=0" myFile.tex (install missing tex packages and compile with latexmk)

  5. deploy results and cache the tex-related part of the image.


Which package should I chose for texlive-something so that these steps work? Thanks in advance.



edit



It seems that the word minimal can lead to some confusion. In this case it means (for a package)




  1. Has a set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) that would allow me to compile an empty document. Should I need some other binaries, I'm ok with adding this dependencies by hand


  2. Contains a minimal set of LaTeX packages so that an empty document would compile. If I understand correctly, most other packages will be handled by texliveonfly (barring some esoteric cases, of course, but that can be handled manually, too).



In other words, minimal in terms of total disk space under the hypothesis that an empty document compiles using the instruments I mentioned.







texlive installing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 20 '17 at 13:23







TZakrevskiy

















asked Oct 20 '17 at 12:54









TZakrevskiyTZakrevskiy

18518




18518













  • You can say that "minimal" is texlive with nothing more... And it is not even minimal . Anything more is a matter of taste and opinion based... But I gave an answer by my experience with the packages that I always have to install (math is a mast for me anyway... but texlive users love math and if not... have to)

    – koleygr
    Oct 20 '17 at 13:12











  • I also think that in different linux distros the packages are not exactly the same... (Just noticing for anyone who will see this question) [But this could be because of different texlive releases... not sure... Just happened to me before]

    – koleygr
    Oct 20 '17 at 13:16






  • 1





    This heavily depends on what you want to use the installation for.

    – samcarter
    Oct 20 '17 at 13:22











  • @samcarter could you elaborate?

    – TZakrevskiy
    Oct 20 '17 at 13:25











  • You are talking about empty files (I suppose you mean "hello world" latex files)... and as far as I know just the package texlive is enough (and much more than enough for this)

    – koleygr
    Oct 20 '17 at 13:27



















  • You can say that "minimal" is texlive with nothing more... And it is not even minimal . Anything more is a matter of taste and opinion based... But I gave an answer by my experience with the packages that I always have to install (math is a mast for me anyway... but texlive users love math and if not... have to)

    – koleygr
    Oct 20 '17 at 13:12











  • I also think that in different linux distros the packages are not exactly the same... (Just noticing for anyone who will see this question) [But this could be because of different texlive releases... not sure... Just happened to me before]

    – koleygr
    Oct 20 '17 at 13:16






  • 1





    This heavily depends on what you want to use the installation for.

    – samcarter
    Oct 20 '17 at 13:22











  • @samcarter could you elaborate?

    – TZakrevskiy
    Oct 20 '17 at 13:25











  • You are talking about empty files (I suppose you mean "hello world" latex files)... and as far as I know just the package texlive is enough (and much more than enough for this)

    – koleygr
    Oct 20 '17 at 13:27

















You can say that "minimal" is texlive with nothing more... And it is not even minimal . Anything more is a matter of taste and opinion based... But I gave an answer by my experience with the packages that I always have to install (math is a mast for me anyway... but texlive users love math and if not... have to)

– koleygr
Oct 20 '17 at 13:12





You can say that "minimal" is texlive with nothing more... And it is not even minimal . Anything more is a matter of taste and opinion based... But I gave an answer by my experience with the packages that I always have to install (math is a mast for me anyway... but texlive users love math and if not... have to)

– koleygr
Oct 20 '17 at 13:12













I also think that in different linux distros the packages are not exactly the same... (Just noticing for anyone who will see this question) [But this could be because of different texlive releases... not sure... Just happened to me before]

– koleygr
Oct 20 '17 at 13:16





I also think that in different linux distros the packages are not exactly the same... (Just noticing for anyone who will see this question) [But this could be because of different texlive releases... not sure... Just happened to me before]

– koleygr
Oct 20 '17 at 13:16




1




1





This heavily depends on what you want to use the installation for.

– samcarter
Oct 20 '17 at 13:22





This heavily depends on what you want to use the installation for.

– samcarter
Oct 20 '17 at 13:22













@samcarter could you elaborate?

– TZakrevskiy
Oct 20 '17 at 13:25





@samcarter could you elaborate?

– TZakrevskiy
Oct 20 '17 at 13:25













You are talking about empty files (I suppose you mean "hello world" latex files)... and as far as I know just the package texlive is enough (and much more than enough for this)

– koleygr
Oct 20 '17 at 13:27





You are talking about empty files (I suppose you mean "hello world" latex files)... and as far as I know just the package texlive is enough (and much more than enough for this)

– koleygr
Oct 20 '17 at 13:27










5 Answers
5






active

oldest

votes


















6














Installing texlive from TUG (https://www.tug.org/texlive/acquire-netinstall.html) you can have a minimal latex installation with 76 MB by selecting:




  • the basic scheme


enter image description here




  • not installing documentation and source


enter image description here






share|improve this answer
























  • Hm, that's interesting, thank you. I'll try to run the installation with this profile.

    – TZakrevskiy
    Oct 20 '17 at 14:14



















2














I use




  1. texlive-lang-greek

  2. texlive-xetex

  3. texlive-latex-extra

  4. texlive-fonts-extra
    and

  5. texlive-math-extra


You can replace the language with english + more if needed,



You can avoid xetex and fonts-extra if you dont use XeLaTeX



But the others I have discovered are really useful to let them "out of the game"



PS: Also I think your question is opinion based and will probably be closed






share|improve this answer
























  • Thanks, I'll give it a try. Why do you think this question is opinion based? Basically, I'm asking for a name of a package that a) has minimal set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) b) contains a minimal set of LaTeX packages so that at least an empty document would compile. If I understand correctly, everything else will be handled by texliveonfly (barring some esoteric cases, of course).

    – TZakrevskiy
    Oct 20 '17 at 13:15











  • I don't know... Probably I missed things... I didn't answer about compilation of "hello world" latex file... I talked about the texlive packages that are common used in more of the cases (That just allows you to compile as much latex projects as possible without installing everything of texlive). If I am off-topic please let me know to delete the answer.

    – koleygr
    Oct 20 '17 at 13:20











  • Comment probably important: Never used latexmk till now!

    – koleygr
    Oct 20 '17 at 13:22











  • Hm, why did you not use latexmk? I don't think I saw a better alternative. I find it quite helpful (and many TeX editors are running it under the hood for their build systems).

    – TZakrevskiy
    Oct 20 '17 at 13:28






  • 1





    You don't say which distro you use. You don't know what distro the OP uses. So you have no idea if these packages even exist there or, if they do, what they provide.

    – cfr
    May 23 '18 at 23:11



















2














I use TinyTeX, it was developed for R but works nicely for other purposes.



Management is done by command-line using tlmgr as usual, and the profile file is easy to understand and adjust:




TinyTeX is a custom (and probably opinionated) LaTeX distribution
based on TeX Live that is small in size but still functions well in
most cases. Even if you run into the problem of missing LaTeX
packages, it should be super clear to you what you need to do. You
only install LaTeX packages you actually need. The manual should be at
most two pages long.



Please note that TinyTeX assumes that you are not afraid of using the
command line... In fact, there is only one single command that you need to
know: tlmgr. It is probably not too scary.



TinyTeX only provides an installation script that downloads and
installs TeX Live over the network. It may take a couple of minutes,
depending on your network speed...



For Linux users, TinyTeX will be installed to $HOME/.TinyTeX and
symlinks of executables (such as pdflatex) are created under
$HOME/bin, which should be on the PATH environment variable:



wget -qO-   
"https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
sh



...




To uninstall TinyTeX, simply delete the folder from your file
manager/browser, or use command line:



# Linux tlmgr path remove 
rm -r "~/.TinyTeX"


Compare the way to uninstall TinyTeX with the ways to uninstall other LaTeX > distributions, and you may appreciate how much simpler it is to get rid of > TinyTeX than other LaTeX distributions. That is because TinyTeX is just a > > self-contained folder.




Edit: @cfr asked how does it work in a multi-user scenario



There are two options, the simple "everyone uses it but only root installs news packages", the complicated "create a tinytex user group and chmod it" and the reasonable "each user may have his local package tree". Questions 7 and 8 on the official FAQ describe it:



1 - Download and prepare a fully portable distro without root:



wget -qO- 
"https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
sh -s - --admin --no-path


2 - Set symlinks and permissions as root



sudo ~/.TinyTeX/bin/*/tlmgr path add
chown -R root:staff ~/.TinyTeX
chmod -R g+w ~/.TinyTeX
chmod -R g+wx ~/.TinyTeX/bin


3 - Each user initializes its own package tree



tlmgr init-usertree


4 - Users run tlmgr using the --usermode switch to install whatever package they need



tlmgr --usermode install koma-script xcolor


Adjusting these commands to specific sysadmin scenarios should be trivial after a couple minutes of pondering.



Questions 9 and 16 of the FAQ deal with Debian-based package managersreposPPAs and with macOS respectively, and are worth a read too.



Second Edit: Just noticed TinyTeX's Hall of Pain...



includes at least three references to the "TeXlive too big for Docker container, MikTeX too esoteric for life" situation: https://yihui.name/tinytex/pain/



A testimonial that mentions files sizes:




Removed TeX Live from my system (openSUSE): 1.5gb. Installed TinyTeX +
the dependencies to compile my thesis: 150mb!!!! This is great! —
Bruno Rodrigues







share|improve this answer





















  • 1





    But every user has to do this individually?

    – cfr
    May 23 '18 at 23:12











  • @cfr: No. In the distribution site there are instructions to install for all users on a Linux system - static install, only root can add packages, or each user having its own package tree. See answer 8 on yihui.name/tinytex/faq

    – Lucas Soares
    May 23 '18 at 23:16








  • 1





    You might want to clarify that in your answer, since that would be a significant disadvantage for some people. (I guess it doesn't have to be root owned, either. You could do it the way I do for TL with a dedicated user.)

    – cfr
    May 23 '18 at 23:43



















0














For Mac OS X, you can use BasicTeX. It is the option recommended for instance by pandoc (they just recommend to install the collection-fontsrecommended package on top of it).



Quoting About BasicTeX-2017:




BasicTeX (73 MB) is an installation package for Mac OS X based on TeX Live 2017. Unlike MacTeX, this package is deliberately small. Yet it contains all of the standard tools needed to write TeX documents, including TeX, LaTeX, pdfTeX, MetaFont, dvips, MetaPost, and XeTeX.




Apparently, this package is just a wrapper of the standard TeXLive installation script, tuning some paths and setting the installation to the "TeX Live small scheme" option.






share|improve this answer































    0














    I know this is a rather old post, but if you want to build a docker image with a complete TeX Live installation (vanilla TeX Live from TUG) you can reduce its size to about 1.72 GiB instead of 5 GiB which is quite acceptable depending on your needs. However, this just minimizes the image size and does not do on-the-fly installation, because it has all packages.



    Okay, so how does it work? The TeX Live installer gives you the option not to install the documentation and source files which results in a TeX tree that only contains the relevant files for a compilation. I highly doubt that you will look up documentation files in a docker image.



    Let's start off with the choice of your image. Unfortunately, you cannot use Alpine this time as TeX Live does not ship certain binaries for Linux/MUSL, e.g. biber. So we can resort to Debian.



    Furthermore, you need to install some dependencies before getting started, depending on the tools you want to use:




    • JDK for tools like arara

    • libncurses for xindy

    • some perl libraries for biber and other perl tools

    • python-pygments for minted


    These are not "expensive" after all. Last but not least you install the vanilla TeX Live with a custom profile:



    selected_scheme scheme-full
    tlpdbopt_install_docfiles 0
    tlpdbopt_install_srcfiles 0
    tlpdbopt_autobackup 0
    tlpdbopt_sys_bin /usr/bin


    That means that you want all package (scheme-full), but do not want any documentation and source files, just the packages. And the last instruction just says that we want our symlinks in /usr/bin, so that we do not have to care about PATH manipulation.



    After installing you can call tlmgr path add and you will have your binaries symlinked to your PATH. Then you are ready to go.



    Full Dockerfile (partially based on sumdoc/texlive-2018):



    FROM debian:sid

    ENV TEXLIVE_INSTALL_NO_CONTEXT_CACHE=1
    NOPERLDOC=1

    RUN apt-get update &&
    apt-get install -y wget unzip tar
    make fontconfig perl openjdk-8-jre libgetopt-long-descriptive-perl
    libdigest-perl-md5-perl libncurses5
    python3-pygments &&
    rm -rf /var/lib/apt/lists/*

    RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz &&
    tar xzf install-tl-unx.tar.gz && rm install-tl-unx.tar.gz &&
    cd install-tl* &&
    echo "selected_scheme scheme-full" > install.profile &&
    echo "tlpdbopt_install_docfiles 0" >> install.profile &&
    echo "tlpdbopt_install_srcfiles 0" >> install.profile &&
    echo "tlpdbopt_autobackup 0" >> install.profile &&
    echo "tlpdbopt_sys_bin /usr/bin" >> install.profile &&
    ./install-tl -profile install.profile && cd .. && rm -rf install-tl*

    RUN /usr/local/texlive/2018/bin/x86_64-linux/tlmgr path add





    share|improve this answer

























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "85"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f397174%2fminimal-texlive-installation%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      5 Answers
      5






      active

      oldest

      votes








      5 Answers
      5






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6














      Installing texlive from TUG (https://www.tug.org/texlive/acquire-netinstall.html) you can have a minimal latex installation with 76 MB by selecting:




      • the basic scheme


      enter image description here




      • not installing documentation and source


      enter image description here






      share|improve this answer
























      • Hm, that's interesting, thank you. I'll try to run the installation with this profile.

        – TZakrevskiy
        Oct 20 '17 at 14:14
















      6














      Installing texlive from TUG (https://www.tug.org/texlive/acquire-netinstall.html) you can have a minimal latex installation with 76 MB by selecting:




      • the basic scheme


      enter image description here




      • not installing documentation and source


      enter image description here






      share|improve this answer
























      • Hm, that's interesting, thank you. I'll try to run the installation with this profile.

        – TZakrevskiy
        Oct 20 '17 at 14:14














      6












      6








      6







      Installing texlive from TUG (https://www.tug.org/texlive/acquire-netinstall.html) you can have a minimal latex installation with 76 MB by selecting:




      • the basic scheme


      enter image description here




      • not installing documentation and source


      enter image description here






      share|improve this answer













      Installing texlive from TUG (https://www.tug.org/texlive/acquire-netinstall.html) you can have a minimal latex installation with 76 MB by selecting:




      • the basic scheme


      enter image description here




      • not installing documentation and source


      enter image description here







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Oct 20 '17 at 13:35









      samcartersamcarter

      87.1k795279




      87.1k795279













      • Hm, that's interesting, thank you. I'll try to run the installation with this profile.

        – TZakrevskiy
        Oct 20 '17 at 14:14



















      • Hm, that's interesting, thank you. I'll try to run the installation with this profile.

        – TZakrevskiy
        Oct 20 '17 at 14:14

















      Hm, that's interesting, thank you. I'll try to run the installation with this profile.

      – TZakrevskiy
      Oct 20 '17 at 14:14





      Hm, that's interesting, thank you. I'll try to run the installation with this profile.

      – TZakrevskiy
      Oct 20 '17 at 14:14











      2














      I use




      1. texlive-lang-greek

      2. texlive-xetex

      3. texlive-latex-extra

      4. texlive-fonts-extra
        and

      5. texlive-math-extra


      You can replace the language with english + more if needed,



      You can avoid xetex and fonts-extra if you dont use XeLaTeX



      But the others I have discovered are really useful to let them "out of the game"



      PS: Also I think your question is opinion based and will probably be closed






      share|improve this answer
























      • Thanks, I'll give it a try. Why do you think this question is opinion based? Basically, I'm asking for a name of a package that a) has minimal set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) b) contains a minimal set of LaTeX packages so that at least an empty document would compile. If I understand correctly, everything else will be handled by texliveonfly (barring some esoteric cases, of course).

        – TZakrevskiy
        Oct 20 '17 at 13:15











      • I don't know... Probably I missed things... I didn't answer about compilation of "hello world" latex file... I talked about the texlive packages that are common used in more of the cases (That just allows you to compile as much latex projects as possible without installing everything of texlive). If I am off-topic please let me know to delete the answer.

        – koleygr
        Oct 20 '17 at 13:20











      • Comment probably important: Never used latexmk till now!

        – koleygr
        Oct 20 '17 at 13:22











      • Hm, why did you not use latexmk? I don't think I saw a better alternative. I find it quite helpful (and many TeX editors are running it under the hood for their build systems).

        – TZakrevskiy
        Oct 20 '17 at 13:28






      • 1





        You don't say which distro you use. You don't know what distro the OP uses. So you have no idea if these packages even exist there or, if they do, what they provide.

        – cfr
        May 23 '18 at 23:11
















      2














      I use




      1. texlive-lang-greek

      2. texlive-xetex

      3. texlive-latex-extra

      4. texlive-fonts-extra
        and

      5. texlive-math-extra


      You can replace the language with english + more if needed,



      You can avoid xetex and fonts-extra if you dont use XeLaTeX



      But the others I have discovered are really useful to let them "out of the game"



      PS: Also I think your question is opinion based and will probably be closed






      share|improve this answer
























      • Thanks, I'll give it a try. Why do you think this question is opinion based? Basically, I'm asking for a name of a package that a) has minimal set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) b) contains a minimal set of LaTeX packages so that at least an empty document would compile. If I understand correctly, everything else will be handled by texliveonfly (barring some esoteric cases, of course).

        – TZakrevskiy
        Oct 20 '17 at 13:15











      • I don't know... Probably I missed things... I didn't answer about compilation of "hello world" latex file... I talked about the texlive packages that are common used in more of the cases (That just allows you to compile as much latex projects as possible without installing everything of texlive). If I am off-topic please let me know to delete the answer.

        – koleygr
        Oct 20 '17 at 13:20











      • Comment probably important: Never used latexmk till now!

        – koleygr
        Oct 20 '17 at 13:22











      • Hm, why did you not use latexmk? I don't think I saw a better alternative. I find it quite helpful (and many TeX editors are running it under the hood for their build systems).

        – TZakrevskiy
        Oct 20 '17 at 13:28






      • 1





        You don't say which distro you use. You don't know what distro the OP uses. So you have no idea if these packages even exist there or, if they do, what they provide.

        – cfr
        May 23 '18 at 23:11














      2












      2








      2







      I use




      1. texlive-lang-greek

      2. texlive-xetex

      3. texlive-latex-extra

      4. texlive-fonts-extra
        and

      5. texlive-math-extra


      You can replace the language with english + more if needed,



      You can avoid xetex and fonts-extra if you dont use XeLaTeX



      But the others I have discovered are really useful to let them "out of the game"



      PS: Also I think your question is opinion based and will probably be closed






      share|improve this answer













      I use




      1. texlive-lang-greek

      2. texlive-xetex

      3. texlive-latex-extra

      4. texlive-fonts-extra
        and

      5. texlive-math-extra


      You can replace the language with english + more if needed,



      You can avoid xetex and fonts-extra if you dont use XeLaTeX



      But the others I have discovered are really useful to let them "out of the game"



      PS: Also I think your question is opinion based and will probably be closed







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Oct 20 '17 at 13:09









      koleygrkoleygr

      11.1k11038




      11.1k11038













      • Thanks, I'll give it a try. Why do you think this question is opinion based? Basically, I'm asking for a name of a package that a) has minimal set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) b) contains a minimal set of LaTeX packages so that at least an empty document would compile. If I understand correctly, everything else will be handled by texliveonfly (barring some esoteric cases, of course).

        – TZakrevskiy
        Oct 20 '17 at 13:15











      • I don't know... Probably I missed things... I didn't answer about compilation of "hello world" latex file... I talked about the texlive packages that are common used in more of the cases (That just allows you to compile as much latex projects as possible without installing everything of texlive). If I am off-topic please let me know to delete the answer.

        – koleygr
        Oct 20 '17 at 13:20











      • Comment probably important: Never used latexmk till now!

        – koleygr
        Oct 20 '17 at 13:22











      • Hm, why did you not use latexmk? I don't think I saw a better alternative. I find it quite helpful (and many TeX editors are running it under the hood for their build systems).

        – TZakrevskiy
        Oct 20 '17 at 13:28






      • 1





        You don't say which distro you use. You don't know what distro the OP uses. So you have no idea if these packages even exist there or, if they do, what they provide.

        – cfr
        May 23 '18 at 23:11



















      • Thanks, I'll give it a try. Why do you think this question is opinion based? Basically, I'm asking for a name of a package that a) has minimal set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) b) contains a minimal set of LaTeX packages so that at least an empty document would compile. If I understand correctly, everything else will be handled by texliveonfly (barring some esoteric cases, of course).

        – TZakrevskiy
        Oct 20 '17 at 13:15











      • I don't know... Probably I missed things... I didn't answer about compilation of "hello world" latex file... I talked about the texlive packages that are common used in more of the cases (That just allows you to compile as much latex projects as possible without installing everything of texlive). If I am off-topic please let me know to delete the answer.

        – koleygr
        Oct 20 '17 at 13:20











      • Comment probably important: Never used latexmk till now!

        – koleygr
        Oct 20 '17 at 13:22











      • Hm, why did you not use latexmk? I don't think I saw a better alternative. I find it quite helpful (and many TeX editors are running it under the hood for their build systems).

        – TZakrevskiy
        Oct 20 '17 at 13:28






      • 1





        You don't say which distro you use. You don't know what distro the OP uses. So you have no idea if these packages even exist there or, if they do, what they provide.

        – cfr
        May 23 '18 at 23:11

















      Thanks, I'll give it a try. Why do you think this question is opinion based? Basically, I'm asking for a name of a package that a) has minimal set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) b) contains a minimal set of LaTeX packages so that at least an empty document would compile. If I understand correctly, everything else will be handled by texliveonfly (barring some esoteric cases, of course).

      – TZakrevskiy
      Oct 20 '17 at 13:15





      Thanks, I'll give it a try. Why do you think this question is opinion based? Basically, I'm asking for a name of a package that a) has minimal set of binaries (pdflatex, tlmgr, bibtex/biber, perl, I might be missing something) b) contains a minimal set of LaTeX packages so that at least an empty document would compile. If I understand correctly, everything else will be handled by texliveonfly (barring some esoteric cases, of course).

      – TZakrevskiy
      Oct 20 '17 at 13:15













      I don't know... Probably I missed things... I didn't answer about compilation of "hello world" latex file... I talked about the texlive packages that are common used in more of the cases (That just allows you to compile as much latex projects as possible without installing everything of texlive). If I am off-topic please let me know to delete the answer.

      – koleygr
      Oct 20 '17 at 13:20





      I don't know... Probably I missed things... I didn't answer about compilation of "hello world" latex file... I talked about the texlive packages that are common used in more of the cases (That just allows you to compile as much latex projects as possible without installing everything of texlive). If I am off-topic please let me know to delete the answer.

      – koleygr
      Oct 20 '17 at 13:20













      Comment probably important: Never used latexmk till now!

      – koleygr
      Oct 20 '17 at 13:22





      Comment probably important: Never used latexmk till now!

      – koleygr
      Oct 20 '17 at 13:22













      Hm, why did you not use latexmk? I don't think I saw a better alternative. I find it quite helpful (and many TeX editors are running it under the hood for their build systems).

      – TZakrevskiy
      Oct 20 '17 at 13:28





      Hm, why did you not use latexmk? I don't think I saw a better alternative. I find it quite helpful (and many TeX editors are running it under the hood for their build systems).

      – TZakrevskiy
      Oct 20 '17 at 13:28




      1




      1





      You don't say which distro you use. You don't know what distro the OP uses. So you have no idea if these packages even exist there or, if they do, what they provide.

      – cfr
      May 23 '18 at 23:11





      You don't say which distro you use. You don't know what distro the OP uses. So you have no idea if these packages even exist there or, if they do, what they provide.

      – cfr
      May 23 '18 at 23:11











      2














      I use TinyTeX, it was developed for R but works nicely for other purposes.



      Management is done by command-line using tlmgr as usual, and the profile file is easy to understand and adjust:




      TinyTeX is a custom (and probably opinionated) LaTeX distribution
      based on TeX Live that is small in size but still functions well in
      most cases. Even if you run into the problem of missing LaTeX
      packages, it should be super clear to you what you need to do. You
      only install LaTeX packages you actually need. The manual should be at
      most two pages long.



      Please note that TinyTeX assumes that you are not afraid of using the
      command line... In fact, there is only one single command that you need to
      know: tlmgr. It is probably not too scary.



      TinyTeX only provides an installation script that downloads and
      installs TeX Live over the network. It may take a couple of minutes,
      depending on your network speed...



      For Linux users, TinyTeX will be installed to $HOME/.TinyTeX and
      symlinks of executables (such as pdflatex) are created under
      $HOME/bin, which should be on the PATH environment variable:



      wget -qO-   
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh



      ...




      To uninstall TinyTeX, simply delete the folder from your file
      manager/browser, or use command line:



      # Linux tlmgr path remove 
      rm -r "~/.TinyTeX"


      Compare the way to uninstall TinyTeX with the ways to uninstall other LaTeX > distributions, and you may appreciate how much simpler it is to get rid of > TinyTeX than other LaTeX distributions. That is because TinyTeX is just a > > self-contained folder.




      Edit: @cfr asked how does it work in a multi-user scenario



      There are two options, the simple "everyone uses it but only root installs news packages", the complicated "create a tinytex user group and chmod it" and the reasonable "each user may have his local package tree". Questions 7 and 8 on the official FAQ describe it:



      1 - Download and prepare a fully portable distro without root:



      wget -qO- 
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh -s - --admin --no-path


      2 - Set symlinks and permissions as root



      sudo ~/.TinyTeX/bin/*/tlmgr path add
      chown -R root:staff ~/.TinyTeX
      chmod -R g+w ~/.TinyTeX
      chmod -R g+wx ~/.TinyTeX/bin


      3 - Each user initializes its own package tree



      tlmgr init-usertree


      4 - Users run tlmgr using the --usermode switch to install whatever package they need



      tlmgr --usermode install koma-script xcolor


      Adjusting these commands to specific sysadmin scenarios should be trivial after a couple minutes of pondering.



      Questions 9 and 16 of the FAQ deal with Debian-based package managersreposPPAs and with macOS respectively, and are worth a read too.



      Second Edit: Just noticed TinyTeX's Hall of Pain...



      includes at least three references to the "TeXlive too big for Docker container, MikTeX too esoteric for life" situation: https://yihui.name/tinytex/pain/



      A testimonial that mentions files sizes:




      Removed TeX Live from my system (openSUSE): 1.5gb. Installed TinyTeX +
      the dependencies to compile my thesis: 150mb!!!! This is great! —
      Bruno Rodrigues







      share|improve this answer





















      • 1





        But every user has to do this individually?

        – cfr
        May 23 '18 at 23:12











      • @cfr: No. In the distribution site there are instructions to install for all users on a Linux system - static install, only root can add packages, or each user having its own package tree. See answer 8 on yihui.name/tinytex/faq

        – Lucas Soares
        May 23 '18 at 23:16








      • 1





        You might want to clarify that in your answer, since that would be a significant disadvantage for some people. (I guess it doesn't have to be root owned, either. You could do it the way I do for TL with a dedicated user.)

        – cfr
        May 23 '18 at 23:43
















      2














      I use TinyTeX, it was developed for R but works nicely for other purposes.



      Management is done by command-line using tlmgr as usual, and the profile file is easy to understand and adjust:




      TinyTeX is a custom (and probably opinionated) LaTeX distribution
      based on TeX Live that is small in size but still functions well in
      most cases. Even if you run into the problem of missing LaTeX
      packages, it should be super clear to you what you need to do. You
      only install LaTeX packages you actually need. The manual should be at
      most two pages long.



      Please note that TinyTeX assumes that you are not afraid of using the
      command line... In fact, there is only one single command that you need to
      know: tlmgr. It is probably not too scary.



      TinyTeX only provides an installation script that downloads and
      installs TeX Live over the network. It may take a couple of minutes,
      depending on your network speed...



      For Linux users, TinyTeX will be installed to $HOME/.TinyTeX and
      symlinks of executables (such as pdflatex) are created under
      $HOME/bin, which should be on the PATH environment variable:



      wget -qO-   
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh



      ...




      To uninstall TinyTeX, simply delete the folder from your file
      manager/browser, or use command line:



      # Linux tlmgr path remove 
      rm -r "~/.TinyTeX"


      Compare the way to uninstall TinyTeX with the ways to uninstall other LaTeX > distributions, and you may appreciate how much simpler it is to get rid of > TinyTeX than other LaTeX distributions. That is because TinyTeX is just a > > self-contained folder.




      Edit: @cfr asked how does it work in a multi-user scenario



      There are two options, the simple "everyone uses it but only root installs news packages", the complicated "create a tinytex user group and chmod it" and the reasonable "each user may have his local package tree". Questions 7 and 8 on the official FAQ describe it:



      1 - Download and prepare a fully portable distro without root:



      wget -qO- 
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh -s - --admin --no-path


      2 - Set symlinks and permissions as root



      sudo ~/.TinyTeX/bin/*/tlmgr path add
      chown -R root:staff ~/.TinyTeX
      chmod -R g+w ~/.TinyTeX
      chmod -R g+wx ~/.TinyTeX/bin


      3 - Each user initializes its own package tree



      tlmgr init-usertree


      4 - Users run tlmgr using the --usermode switch to install whatever package they need



      tlmgr --usermode install koma-script xcolor


      Adjusting these commands to specific sysadmin scenarios should be trivial after a couple minutes of pondering.



      Questions 9 and 16 of the FAQ deal with Debian-based package managersreposPPAs and with macOS respectively, and are worth a read too.



      Second Edit: Just noticed TinyTeX's Hall of Pain...



      includes at least three references to the "TeXlive too big for Docker container, MikTeX too esoteric for life" situation: https://yihui.name/tinytex/pain/



      A testimonial that mentions files sizes:




      Removed TeX Live from my system (openSUSE): 1.5gb. Installed TinyTeX +
      the dependencies to compile my thesis: 150mb!!!! This is great! —
      Bruno Rodrigues







      share|improve this answer





















      • 1





        But every user has to do this individually?

        – cfr
        May 23 '18 at 23:12











      • @cfr: No. In the distribution site there are instructions to install for all users on a Linux system - static install, only root can add packages, or each user having its own package tree. See answer 8 on yihui.name/tinytex/faq

        – Lucas Soares
        May 23 '18 at 23:16








      • 1





        You might want to clarify that in your answer, since that would be a significant disadvantage for some people. (I guess it doesn't have to be root owned, either. You could do it the way I do for TL with a dedicated user.)

        – cfr
        May 23 '18 at 23:43














      2












      2








      2







      I use TinyTeX, it was developed for R but works nicely for other purposes.



      Management is done by command-line using tlmgr as usual, and the profile file is easy to understand and adjust:




      TinyTeX is a custom (and probably opinionated) LaTeX distribution
      based on TeX Live that is small in size but still functions well in
      most cases. Even if you run into the problem of missing LaTeX
      packages, it should be super clear to you what you need to do. You
      only install LaTeX packages you actually need. The manual should be at
      most two pages long.



      Please note that TinyTeX assumes that you are not afraid of using the
      command line... In fact, there is only one single command that you need to
      know: tlmgr. It is probably not too scary.



      TinyTeX only provides an installation script that downloads and
      installs TeX Live over the network. It may take a couple of minutes,
      depending on your network speed...



      For Linux users, TinyTeX will be installed to $HOME/.TinyTeX and
      symlinks of executables (such as pdflatex) are created under
      $HOME/bin, which should be on the PATH environment variable:



      wget -qO-   
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh



      ...




      To uninstall TinyTeX, simply delete the folder from your file
      manager/browser, or use command line:



      # Linux tlmgr path remove 
      rm -r "~/.TinyTeX"


      Compare the way to uninstall TinyTeX with the ways to uninstall other LaTeX > distributions, and you may appreciate how much simpler it is to get rid of > TinyTeX than other LaTeX distributions. That is because TinyTeX is just a > > self-contained folder.




      Edit: @cfr asked how does it work in a multi-user scenario



      There are two options, the simple "everyone uses it but only root installs news packages", the complicated "create a tinytex user group and chmod it" and the reasonable "each user may have his local package tree". Questions 7 and 8 on the official FAQ describe it:



      1 - Download and prepare a fully portable distro without root:



      wget -qO- 
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh -s - --admin --no-path


      2 - Set symlinks and permissions as root



      sudo ~/.TinyTeX/bin/*/tlmgr path add
      chown -R root:staff ~/.TinyTeX
      chmod -R g+w ~/.TinyTeX
      chmod -R g+wx ~/.TinyTeX/bin


      3 - Each user initializes its own package tree



      tlmgr init-usertree


      4 - Users run tlmgr using the --usermode switch to install whatever package they need



      tlmgr --usermode install koma-script xcolor


      Adjusting these commands to specific sysadmin scenarios should be trivial after a couple minutes of pondering.



      Questions 9 and 16 of the FAQ deal with Debian-based package managersreposPPAs and with macOS respectively, and are worth a read too.



      Second Edit: Just noticed TinyTeX's Hall of Pain...



      includes at least three references to the "TeXlive too big for Docker container, MikTeX too esoteric for life" situation: https://yihui.name/tinytex/pain/



      A testimonial that mentions files sizes:




      Removed TeX Live from my system (openSUSE): 1.5gb. Installed TinyTeX +
      the dependencies to compile my thesis: 150mb!!!! This is great! —
      Bruno Rodrigues







      share|improve this answer















      I use TinyTeX, it was developed for R but works nicely for other purposes.



      Management is done by command-line using tlmgr as usual, and the profile file is easy to understand and adjust:




      TinyTeX is a custom (and probably opinionated) LaTeX distribution
      based on TeX Live that is small in size but still functions well in
      most cases. Even if you run into the problem of missing LaTeX
      packages, it should be super clear to you what you need to do. You
      only install LaTeX packages you actually need. The manual should be at
      most two pages long.



      Please note that TinyTeX assumes that you are not afraid of using the
      command line... In fact, there is only one single command that you need to
      know: tlmgr. It is probably not too scary.



      TinyTeX only provides an installation script that downloads and
      installs TeX Live over the network. It may take a couple of minutes,
      depending on your network speed...



      For Linux users, TinyTeX will be installed to $HOME/.TinyTeX and
      symlinks of executables (such as pdflatex) are created under
      $HOME/bin, which should be on the PATH environment variable:



      wget -qO-   
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh



      ...




      To uninstall TinyTeX, simply delete the folder from your file
      manager/browser, or use command line:



      # Linux tlmgr path remove 
      rm -r "~/.TinyTeX"


      Compare the way to uninstall TinyTeX with the ways to uninstall other LaTeX > distributions, and you may appreciate how much simpler it is to get rid of > TinyTeX than other LaTeX distributions. That is because TinyTeX is just a > > self-contained folder.




      Edit: @cfr asked how does it work in a multi-user scenario



      There are two options, the simple "everyone uses it but only root installs news packages", the complicated "create a tinytex user group and chmod it" and the reasonable "each user may have his local package tree". Questions 7 and 8 on the official FAQ describe it:



      1 - Download and prepare a fully portable distro without root:



      wget -qO- 
      "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" |
      sh -s - --admin --no-path


      2 - Set symlinks and permissions as root



      sudo ~/.TinyTeX/bin/*/tlmgr path add
      chown -R root:staff ~/.TinyTeX
      chmod -R g+w ~/.TinyTeX
      chmod -R g+wx ~/.TinyTeX/bin


      3 - Each user initializes its own package tree



      tlmgr init-usertree


      4 - Users run tlmgr using the --usermode switch to install whatever package they need



      tlmgr --usermode install koma-script xcolor


      Adjusting these commands to specific sysadmin scenarios should be trivial after a couple minutes of pondering.



      Questions 9 and 16 of the FAQ deal with Debian-based package managersreposPPAs and with macOS respectively, and are worth a read too.



      Second Edit: Just noticed TinyTeX's Hall of Pain...



      includes at least three references to the "TeXlive too big for Docker container, MikTeX too esoteric for life" situation: https://yihui.name/tinytex/pain/



      A testimonial that mentions files sizes:




      Removed TeX Live from my system (openSUSE): 1.5gb. Installed TinyTeX +
      the dependencies to compile my thesis: 150mb!!!! This is great! —
      Bruno Rodrigues








      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited May 24 '18 at 15:18

























      answered May 23 '18 at 22:16









      Lucas SoaresLucas Soares

      13519




      13519








      • 1





        But every user has to do this individually?

        – cfr
        May 23 '18 at 23:12











      • @cfr: No. In the distribution site there are instructions to install for all users on a Linux system - static install, only root can add packages, or each user having its own package tree. See answer 8 on yihui.name/tinytex/faq

        – Lucas Soares
        May 23 '18 at 23:16








      • 1





        You might want to clarify that in your answer, since that would be a significant disadvantage for some people. (I guess it doesn't have to be root owned, either. You could do it the way I do for TL with a dedicated user.)

        – cfr
        May 23 '18 at 23:43














      • 1





        But every user has to do this individually?

        – cfr
        May 23 '18 at 23:12











      • @cfr: No. In the distribution site there are instructions to install for all users on a Linux system - static install, only root can add packages, or each user having its own package tree. See answer 8 on yihui.name/tinytex/faq

        – Lucas Soares
        May 23 '18 at 23:16








      • 1





        You might want to clarify that in your answer, since that would be a significant disadvantage for some people. (I guess it doesn't have to be root owned, either. You could do it the way I do for TL with a dedicated user.)

        – cfr
        May 23 '18 at 23:43








      1




      1





      But every user has to do this individually?

      – cfr
      May 23 '18 at 23:12





      But every user has to do this individually?

      – cfr
      May 23 '18 at 23:12













      @cfr: No. In the distribution site there are instructions to install for all users on a Linux system - static install, only root can add packages, or each user having its own package tree. See answer 8 on yihui.name/tinytex/faq

      – Lucas Soares
      May 23 '18 at 23:16







      @cfr: No. In the distribution site there are instructions to install for all users on a Linux system - static install, only root can add packages, or each user having its own package tree. See answer 8 on yihui.name/tinytex/faq

      – Lucas Soares
      May 23 '18 at 23:16






      1




      1





      You might want to clarify that in your answer, since that would be a significant disadvantage for some people. (I guess it doesn't have to be root owned, either. You could do it the way I do for TL with a dedicated user.)

      – cfr
      May 23 '18 at 23:43





      You might want to clarify that in your answer, since that would be a significant disadvantage for some people. (I guess it doesn't have to be root owned, either. You could do it the way I do for TL with a dedicated user.)

      – cfr
      May 23 '18 at 23:43











      0














      For Mac OS X, you can use BasicTeX. It is the option recommended for instance by pandoc (they just recommend to install the collection-fontsrecommended package on top of it).



      Quoting About BasicTeX-2017:




      BasicTeX (73 MB) is an installation package for Mac OS X based on TeX Live 2017. Unlike MacTeX, this package is deliberately small. Yet it contains all of the standard tools needed to write TeX documents, including TeX, LaTeX, pdfTeX, MetaFont, dvips, MetaPost, and XeTeX.




      Apparently, this package is just a wrapper of the standard TeXLive installation script, tuning some paths and setting the installation to the "TeX Live small scheme" option.






      share|improve this answer




























        0














        For Mac OS X, you can use BasicTeX. It is the option recommended for instance by pandoc (they just recommend to install the collection-fontsrecommended package on top of it).



        Quoting About BasicTeX-2017:




        BasicTeX (73 MB) is an installation package for Mac OS X based on TeX Live 2017. Unlike MacTeX, this package is deliberately small. Yet it contains all of the standard tools needed to write TeX documents, including TeX, LaTeX, pdfTeX, MetaFont, dvips, MetaPost, and XeTeX.




        Apparently, this package is just a wrapper of the standard TeXLive installation script, tuning some paths and setting the installation to the "TeX Live small scheme" option.






        share|improve this answer


























          0












          0








          0







          For Mac OS X, you can use BasicTeX. It is the option recommended for instance by pandoc (they just recommend to install the collection-fontsrecommended package on top of it).



          Quoting About BasicTeX-2017:




          BasicTeX (73 MB) is an installation package for Mac OS X based on TeX Live 2017. Unlike MacTeX, this package is deliberately small. Yet it contains all of the standard tools needed to write TeX documents, including TeX, LaTeX, pdfTeX, MetaFont, dvips, MetaPost, and XeTeX.




          Apparently, this package is just a wrapper of the standard TeXLive installation script, tuning some paths and setting the installation to the "TeX Live small scheme" option.






          share|improve this answer













          For Mac OS X, you can use BasicTeX. It is the option recommended for instance by pandoc (they just recommend to install the collection-fontsrecommended package on top of it).



          Quoting About BasicTeX-2017:




          BasicTeX (73 MB) is an installation package for Mac OS X based on TeX Live 2017. Unlike MacTeX, this package is deliberately small. Yet it contains all of the standard tools needed to write TeX documents, including TeX, LaTeX, pdfTeX, MetaFont, dvips, MetaPost, and XeTeX.




          Apparently, this package is just a wrapper of the standard TeXLive installation script, tuning some paths and setting the installation to the "TeX Live small scheme" option.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 24 '18 at 3:31









          ClémentClément

          2,59921162




          2,59921162























              0














              I know this is a rather old post, but if you want to build a docker image with a complete TeX Live installation (vanilla TeX Live from TUG) you can reduce its size to about 1.72 GiB instead of 5 GiB which is quite acceptable depending on your needs. However, this just minimizes the image size and does not do on-the-fly installation, because it has all packages.



              Okay, so how does it work? The TeX Live installer gives you the option not to install the documentation and source files which results in a TeX tree that only contains the relevant files for a compilation. I highly doubt that you will look up documentation files in a docker image.



              Let's start off with the choice of your image. Unfortunately, you cannot use Alpine this time as TeX Live does not ship certain binaries for Linux/MUSL, e.g. biber. So we can resort to Debian.



              Furthermore, you need to install some dependencies before getting started, depending on the tools you want to use:




              • JDK for tools like arara

              • libncurses for xindy

              • some perl libraries for biber and other perl tools

              • python-pygments for minted


              These are not "expensive" after all. Last but not least you install the vanilla TeX Live with a custom profile:



              selected_scheme scheme-full
              tlpdbopt_install_docfiles 0
              tlpdbopt_install_srcfiles 0
              tlpdbopt_autobackup 0
              tlpdbopt_sys_bin /usr/bin


              That means that you want all package (scheme-full), but do not want any documentation and source files, just the packages. And the last instruction just says that we want our symlinks in /usr/bin, so that we do not have to care about PATH manipulation.



              After installing you can call tlmgr path add and you will have your binaries symlinked to your PATH. Then you are ready to go.



              Full Dockerfile (partially based on sumdoc/texlive-2018):



              FROM debian:sid

              ENV TEXLIVE_INSTALL_NO_CONTEXT_CACHE=1
              NOPERLDOC=1

              RUN apt-get update &&
              apt-get install -y wget unzip tar
              make fontconfig perl openjdk-8-jre libgetopt-long-descriptive-perl
              libdigest-perl-md5-perl libncurses5
              python3-pygments &&
              rm -rf /var/lib/apt/lists/*

              RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz &&
              tar xzf install-tl-unx.tar.gz && rm install-tl-unx.tar.gz &&
              cd install-tl* &&
              echo "selected_scheme scheme-full" > install.profile &&
              echo "tlpdbopt_install_docfiles 0" >> install.profile &&
              echo "tlpdbopt_install_srcfiles 0" >> install.profile &&
              echo "tlpdbopt_autobackup 0" >> install.profile &&
              echo "tlpdbopt_sys_bin /usr/bin" >> install.profile &&
              ./install-tl -profile install.profile && cd .. && rm -rf install-tl*

              RUN /usr/local/texlive/2018/bin/x86_64-linux/tlmgr path add





              share|improve this answer






























                0














                I know this is a rather old post, but if you want to build a docker image with a complete TeX Live installation (vanilla TeX Live from TUG) you can reduce its size to about 1.72 GiB instead of 5 GiB which is quite acceptable depending on your needs. However, this just minimizes the image size and does not do on-the-fly installation, because it has all packages.



                Okay, so how does it work? The TeX Live installer gives you the option not to install the documentation and source files which results in a TeX tree that only contains the relevant files for a compilation. I highly doubt that you will look up documentation files in a docker image.



                Let's start off with the choice of your image. Unfortunately, you cannot use Alpine this time as TeX Live does not ship certain binaries for Linux/MUSL, e.g. biber. So we can resort to Debian.



                Furthermore, you need to install some dependencies before getting started, depending on the tools you want to use:




                • JDK for tools like arara

                • libncurses for xindy

                • some perl libraries for biber and other perl tools

                • python-pygments for minted


                These are not "expensive" after all. Last but not least you install the vanilla TeX Live with a custom profile:



                selected_scheme scheme-full
                tlpdbopt_install_docfiles 0
                tlpdbopt_install_srcfiles 0
                tlpdbopt_autobackup 0
                tlpdbopt_sys_bin /usr/bin


                That means that you want all package (scheme-full), but do not want any documentation and source files, just the packages. And the last instruction just says that we want our symlinks in /usr/bin, so that we do not have to care about PATH manipulation.



                After installing you can call tlmgr path add and you will have your binaries symlinked to your PATH. Then you are ready to go.



                Full Dockerfile (partially based on sumdoc/texlive-2018):



                FROM debian:sid

                ENV TEXLIVE_INSTALL_NO_CONTEXT_CACHE=1
                NOPERLDOC=1

                RUN apt-get update &&
                apt-get install -y wget unzip tar
                make fontconfig perl openjdk-8-jre libgetopt-long-descriptive-perl
                libdigest-perl-md5-perl libncurses5
                python3-pygments &&
                rm -rf /var/lib/apt/lists/*

                RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz &&
                tar xzf install-tl-unx.tar.gz && rm install-tl-unx.tar.gz &&
                cd install-tl* &&
                echo "selected_scheme scheme-full" > install.profile &&
                echo "tlpdbopt_install_docfiles 0" >> install.profile &&
                echo "tlpdbopt_install_srcfiles 0" >> install.profile &&
                echo "tlpdbopt_autobackup 0" >> install.profile &&
                echo "tlpdbopt_sys_bin /usr/bin" >> install.profile &&
                ./install-tl -profile install.profile && cd .. && rm -rf install-tl*

                RUN /usr/local/texlive/2018/bin/x86_64-linux/tlmgr path add





                share|improve this answer




























                  0












                  0








                  0







                  I know this is a rather old post, but if you want to build a docker image with a complete TeX Live installation (vanilla TeX Live from TUG) you can reduce its size to about 1.72 GiB instead of 5 GiB which is quite acceptable depending on your needs. However, this just minimizes the image size and does not do on-the-fly installation, because it has all packages.



                  Okay, so how does it work? The TeX Live installer gives you the option not to install the documentation and source files which results in a TeX tree that only contains the relevant files for a compilation. I highly doubt that you will look up documentation files in a docker image.



                  Let's start off with the choice of your image. Unfortunately, you cannot use Alpine this time as TeX Live does not ship certain binaries for Linux/MUSL, e.g. biber. So we can resort to Debian.



                  Furthermore, you need to install some dependencies before getting started, depending on the tools you want to use:




                  • JDK for tools like arara

                  • libncurses for xindy

                  • some perl libraries for biber and other perl tools

                  • python-pygments for minted


                  These are not "expensive" after all. Last but not least you install the vanilla TeX Live with a custom profile:



                  selected_scheme scheme-full
                  tlpdbopt_install_docfiles 0
                  tlpdbopt_install_srcfiles 0
                  tlpdbopt_autobackup 0
                  tlpdbopt_sys_bin /usr/bin


                  That means that you want all package (scheme-full), but do not want any documentation and source files, just the packages. And the last instruction just says that we want our symlinks in /usr/bin, so that we do not have to care about PATH manipulation.



                  After installing you can call tlmgr path add and you will have your binaries symlinked to your PATH. Then you are ready to go.



                  Full Dockerfile (partially based on sumdoc/texlive-2018):



                  FROM debian:sid

                  ENV TEXLIVE_INSTALL_NO_CONTEXT_CACHE=1
                  NOPERLDOC=1

                  RUN apt-get update &&
                  apt-get install -y wget unzip tar
                  make fontconfig perl openjdk-8-jre libgetopt-long-descriptive-perl
                  libdigest-perl-md5-perl libncurses5
                  python3-pygments &&
                  rm -rf /var/lib/apt/lists/*

                  RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz &&
                  tar xzf install-tl-unx.tar.gz && rm install-tl-unx.tar.gz &&
                  cd install-tl* &&
                  echo "selected_scheme scheme-full" > install.profile &&
                  echo "tlpdbopt_install_docfiles 0" >> install.profile &&
                  echo "tlpdbopt_install_srcfiles 0" >> install.profile &&
                  echo "tlpdbopt_autobackup 0" >> install.profile &&
                  echo "tlpdbopt_sys_bin /usr/bin" >> install.profile &&
                  ./install-tl -profile install.profile && cd .. && rm -rf install-tl*

                  RUN /usr/local/texlive/2018/bin/x86_64-linux/tlmgr path add





                  share|improve this answer















                  I know this is a rather old post, but if you want to build a docker image with a complete TeX Live installation (vanilla TeX Live from TUG) you can reduce its size to about 1.72 GiB instead of 5 GiB which is quite acceptable depending on your needs. However, this just minimizes the image size and does not do on-the-fly installation, because it has all packages.



                  Okay, so how does it work? The TeX Live installer gives you the option not to install the documentation and source files which results in a TeX tree that only contains the relevant files for a compilation. I highly doubt that you will look up documentation files in a docker image.



                  Let's start off with the choice of your image. Unfortunately, you cannot use Alpine this time as TeX Live does not ship certain binaries for Linux/MUSL, e.g. biber. So we can resort to Debian.



                  Furthermore, you need to install some dependencies before getting started, depending on the tools you want to use:




                  • JDK for tools like arara

                  • libncurses for xindy

                  • some perl libraries for biber and other perl tools

                  • python-pygments for minted


                  These are not "expensive" after all. Last but not least you install the vanilla TeX Live with a custom profile:



                  selected_scheme scheme-full
                  tlpdbopt_install_docfiles 0
                  tlpdbopt_install_srcfiles 0
                  tlpdbopt_autobackup 0
                  tlpdbopt_sys_bin /usr/bin


                  That means that you want all package (scheme-full), but do not want any documentation and source files, just the packages. And the last instruction just says that we want our symlinks in /usr/bin, so that we do not have to care about PATH manipulation.



                  After installing you can call tlmgr path add and you will have your binaries symlinked to your PATH. Then you are ready to go.



                  Full Dockerfile (partially based on sumdoc/texlive-2018):



                  FROM debian:sid

                  ENV TEXLIVE_INSTALL_NO_CONTEXT_CACHE=1
                  NOPERLDOC=1

                  RUN apt-get update &&
                  apt-get install -y wget unzip tar
                  make fontconfig perl openjdk-8-jre libgetopt-long-descriptive-perl
                  libdigest-perl-md5-perl libncurses5
                  python3-pygments &&
                  rm -rf /var/lib/apt/lists/*

                  RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz &&
                  tar xzf install-tl-unx.tar.gz && rm install-tl-unx.tar.gz &&
                  cd install-tl* &&
                  echo "selected_scheme scheme-full" > install.profile &&
                  echo "tlpdbopt_install_docfiles 0" >> install.profile &&
                  echo "tlpdbopt_install_srcfiles 0" >> install.profile &&
                  echo "tlpdbopt_autobackup 0" >> install.profile &&
                  echo "tlpdbopt_sys_bin /usr/bin" >> install.profile &&
                  ./install-tl -profile install.profile && cd .. && rm -rf install-tl*

                  RUN /usr/local/texlive/2018/bin/x86_64-linux/tlmgr path add






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 9 at 8:58

























                  answered Dec 16 '18 at 7:29









                  TeXnicianTeXnician

                  24.7k63187




                  24.7k63187






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f397174%2fminimal-texlive-installation%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to change which sound is reproduced for terminal bell?

                      Can I use Tabulator js library in my java Spring + Thymeleaf project?

                      Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents