TeX Live and MacTeXUpdate a single package in Linux / Ubuntu

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Update a single package in Linux / Ubuntu

Post by Tolaso »

tcolorbox package has been updated. How can I update it my installation? I don't want to update the entire TeX Live installation. I just want to update this package only.

When I ran the command sudo -i tlmgr update tcolorbox in the terminal I'm getting this

Code: Select all

(running on Debian, switching to user mode!)
cannot setup TLPDB in /root/texmf at /usr/bin/tlmgr line 5604.
I suspect the error message is because the TeX Live distribution is frozen? Maybe I'm wrong though.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Update a single package in Linux / Ubuntu

Post by Stefan Kottwitz »

Which version of TeX Live are you using? And is it installed via tug.org, or using the Ubuntu installation via Ubuntu repositories?

Stefan
LaTeX.org admin
Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Update a single package in Linux / Ubuntu

Post by Tolaso »

I installed TeX Live through Ubuntu terminal. I am using TeX Live 2016.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Update a single package in Linux / Ubuntu

Post by Stefan Kottwitz »

Yes, with TeX Live 2016 (or 2018) you cannot use the automatic update anymore. The repositories don't support older years than the current year, this cannot be managed.

One solution would be: install (download) the package to your home directory. Check

kpsewhich tcolorbox.sty

and

kpsewhich -var-value TEXMFHOME

to find your own (user) directory and copy it there in a simlar way with folder and subfolder.

The user home directory is preferred over the system TeX directory, so the newer tcolorbox would be used.

Stefan
LaTeX.org admin
Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Update a single package in Linux / Ubuntu

Post by Tolaso »

Is it me or just my imagination that I don't understand the procedure? I have downloaded the zip file. What to do next? Run something through the terminal?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Update a single package in Linux / Ubuntu

Post by Stefan Kottwitz »

Download tcolorbox.tds.zip, copy it directly in the TEXMFHOME directory, unzip it there.

Stefan
LaTeX.org admin
Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Update a single package in Linux / Ubuntu

Post by Tolaso »

Thanks Stefan but I cannot seem to locate the TEXMFHOME directory. Any guidance?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Update a single package in Linux / Ubuntu

Post by Stefan Kottwitz »

Did you try?

kpsewhich -var-value TEXMFHOME

kpsewhich --expand-path='$TEXMFHOME'

kpsewhich -var TEXMFHOME

Stefan
LaTeX.org admin
Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Update a single package in Linux / Ubuntu

Post by Tolaso »

Sorry Stefan,

I'm quite new to Linux and I don't understand these steps! Would you mind elaborating a bit? Do I run these commands through the terminal to see the directory?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Update a single package in Linux / Ubuntu

Post by Stefan Kottwitz »

Yes, run the commands in a terminal window. The output should be the user TeX home directory.

Stefan
LaTeX.org admin
Post Reply