Skip to content

Instantly share code, notes, and snippets.

@rmflight
Last active October 31, 2019 19:42
Show Gist options
  • Save rmflight/36b69b2608b070d0dcd38c87dd585d71 to your computer and use it in GitHub Desktop.
Save rmflight/36b69b2608b070d0dcd38c87dd585d71 to your computer and use it in GitHub Desktop.
installing tinytex system wide instead of just user.
# borrowed from the Rocker setup at
# https://github.com/rocker-org/rocker-versioned/blob/3d62b38a1310/verse/Dockerfile#L50-L52
wget -qO- "https://github.com/yihui/tinytex/raw/master/tools/install-unx.sh" | sh -s - --admin --no-path
sudo mv ~/.TinyTeX /opt/TinyTeX
sudo /opt/TinyTeX/bin/*/tlmgr path add
sudo tlmgr install metafont mfware inconsolata tex ae parskip listings
sudo tlmgr path add
Rscript -e "source('https://install-github.me/yihui/tinytex'); tinytex::r_texmf()"
sudo chown -R root:staff /opt/TinyTeX
sudo chmod -R g+w /opt/TinyTeX
sudo chmod -R g+wx /opt/TinyTeX/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment