LaTeX forum ⇒ 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
Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Update a single package in Linux / Ubuntu

Postby Tolaso » Sun May 13, 2018 8:35 pm

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

  1. (running on Debian, switching to user mode!)
  2. 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.

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9020
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun May 13, 2018 8:52 pm

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

Stefan
Site admin

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Sun May 13, 2018 9:15 pm

I installed TeX Live through Ubuntu terminal. I am using TeX Live 2016.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9020
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun May 13, 2018 9:31 pm

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
Site admin

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Sun May 13, 2018 9:34 pm

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: 9020
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun May 13, 2018 9:47 pm

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

Stefan
Site admin

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Mon May 14, 2018 9:31 pm

Thanks Stefan but I cannot seem to locate the TEXMFHOME directory. Any guidance?

User avatar
Stefan Kottwitz
Site Admin
Posts: 9020
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon May 14, 2018 9:48 pm

Did you try?

kpsewhich -var-value TEXMFHOME

kpsewhich --expand-path='$TEXMFHOME'

kpsewhich -var TEXMFHOME

Stefan
Site admin

Tolaso
Posts: 37
Joined: Tue Dec 20, 2016 12:23 am

Postby Tolaso » Tue May 15, 2018 8:19 am

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: 9020
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue May 15, 2018 9:35 am

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

Stefan
Site admin


Return to “TeX Live and MacTeX”

Who is online

Users browsing this forum: No registered users and 2 guests