TeX Live version manager tool inspired by rbenv
tlenv is a port of rbenv; this release tracks rbenv v1.3.2.
Run tlenv help for the manual page, or tlenv help <command> for help on a
specific command.
git clone https://github.com/munepi/tlenv.git ~/.tlenv
cd ~/.tlenv
git clone https://github.com/munepi/tlenv-texlive-install.git plugins/texlive-installIf you use Mac with Apple silicon, then you may install the following plugin.
git clone https://github.com/munepi/tlenv-texlive-install-darwin.git plugins/texlive-install-darwinRun tlenv init and it will append the necessary line to the startup file of
your shell:
~/.tlenv/bin/tlenv inittlenv init detects the current shell by inspecting the parent process. You
can also name the shells explicitly, for example tlenv init bash zsh fish.
Restart your shell afterwards so that the changes take effect.
If you prefer to configure your shell by hand, add the following instead:
export PATH=~/.tlenv/bin:${PATH}
eval "$(tlenv init - bash)" # replace `bash' with the name of your shellThe bash completion script ships with tlenv and is loaded by the
tlenv init mechanism.
The zsh completion script also ships with tlenv, but it needs to be added
to FPATH before zsh can discover it. One way to do this is to edit
~/.zshrc:
FPATH=~/.tlenv/completions:"$FPATH"
autoload -Uz compinit
compinittlenv install current
...
Installed current to /Users/<your account>/.tlenv/versions/current
NOTE: to activate this TeX Live version as the new default, run: tlenv global currentEnjoy Happy TeXing!
You can install TeX Live from previous versions, such as TeX Live 2010 frozen, up to the latest version.
For example, if you use TeX Live YYYY (year) frozen, then you can install TeX Live YYYY by executing the following.
tlenv install YYYYAdditionally, you can specify other mirror historic archive for the environment variable TEXLIVE_INSTALL_TLNET as shown below.
TEXLIVE_INSTALL_TLNET=https://<MIRROR HISTORIC ARCHIVE>/systems/texlive/YYYY/tlnet-final/ tlenv install YYYYThe list of TUG official mirrors are Historic archive of TeX material - TeX Users Group.
- texlive-install: TeX Live installation
- texlive-install-darwin: TeX Live installation for macOS (Darwin)
- texlive-install-haranoajifonts: install the latest HaranoAjiFonts when installing TeX Live
- shared-texmflocal: shared TEXMFLOCAL
- tlnet-texjporg: setup tlnet on texlive.texjp.org for the previous TeX Live versions
This program is licensed under the terms of the MIT License.
Munehiro Yamamoto https://github.com/munepi