Wednesday, September 24, 2025

Updating TexLive's CTAN Repository

I encountered an error when attempting to install a LaTeX package using tlgmr

tlmgr intall Package_Name

A solution to address is to change the default repository or declare one on the command line

Declaring the repository on the command line can be cubsome. We can reset the default CTAN repository using command

tlmgr option repository https://mirror.ctan.org/systems/texlive/tlnet

The above command will select one and set it as the default one. However, if you wish to specify which one to use, we can use command

tlmgr option repository https://mirrors.ibiblio.org/pub/mirrors/CTAN/systems/texlive/tlnet

The mirrors can be looked up from the CTAN mirror page.