Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tlenv: TeX Live version manager tool on Unix-like systems

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.

Getting started

1. Install tlenv in local

git clone https://github.com/munepi/tlenv.git ~/.tlenv
cd ~/.tlenv
git clone https://github.com/munepi/tlenv-texlive-install.git  plugins/texlive-install

If 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-darwin

2. Setup tlenv

Run tlenv init and it will append the necessary line to the startup file of your shell:

~/.tlenv/bin/tlenv init

tlenv 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 shell

Shell completions

The 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
compinit

3. Try to install the latest TeX Live version

tlenv 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 current

Enjoy Happy TeXing!

Installing previous TeX Live versions

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 YYYY

Additionally, 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 YYYY

The list of TUG official mirrors are Historic archive of TeX material - TeX Users Group.

Plugins

License

This program is licensed under the terms of the MIT License.


Munehiro Yamamoto https://github.com/munepi

About

tlenv: TeX Live version manager tool on Unix-like systems

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages