I've installed texlive2022 freshly on a new mac (Ventura) via homebrew. Now sudo tlmgr update --self
doesn't work. How do you set it up?
First, following
tlmgr: action not allowed in system mode: ... (texlive)
I've added options,update
to /opt/homebrew/Cellar/texlive/20220321_4/share/texmf-config/tlmgr/config
.
Then, sudo tlmgr update --self
gives
tlmgr: package repository /opt/homebrew/Cellar/texlive/20220321_4/share (not verified: unknown)
tlmgr: backupdir as set in tlpdb
/opt/homebrew/Cellar/texlive/20220321_4/share/tlpkg/backups
is not a directory.
tlmgr: An error has occurred. See above messages. Exiting.
This strongly suggests that this is not how the user should manage texlive.
This is the fourth mac I use texlive on, but I've never had this problem. But I don't remember what I did for the three macs for tlmgr update
to work.
Edit: In response to the comments below, I try to explain what tlmgr
is as I understand it. texlive itself can be installed via a popular package manager called homebrew. On the other hand, texlive consists of a huge number of packages. What if you want to use the latest version of a package included in texlive? You use tlmgr update
. It fetches latest versions of the packages from CTAN and install them. In this way, tlmgr
keeps texlive up to date. This used to work, until I tried to do the same on my fourth mac.