I was surprised tlmgr had to access the cloud to tell me what version
of the acro pkg I have installed:
===8<----------------------------------------
$ tlmgr --usermode info acro
/usr/bin/tlmgr: TLPDB::from_file could not initialize from: https://mirror.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
/usr/bin/tlmgr: Maybe the repository setting should be changed.
/usr/bin/tlmgr: More info: https://tug.org/texlive/acquire.html
===8<----------------------------------------
Then noticed docs state “If *pkg* is not locally installed, searches
in the remote installation source.” Although the acro pkg is locally
installed, I added the --only-installed option because the cloud
should not be needed:
===8<----------------------------------------
$ tlmgr --usermode info --only-installed acro
package: acro
installed: No
===8<----------------------------------------
I know acro is installed system-wide, so tlmgr is apparently not
finding it when I run as a user and thus may only know about
user-installed pkgs. So I ran as root:
===8<----------------------------------------
# tlmgr info --only-installed acro
(running on Debian, switching to user mode!)
(see /usr/share/doc/texlive-base/README.tlmgr-on-Debian.md)
TLPDB: not a directory, not loading: /root/.local/share/texmf
tlmgr: user mode not initialized, please read the documentation!
===8<----------------------------------------
I was baffled that it’s switching to user mode when running as
root. This comment clarifies:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907415#8
It’s because tlmgr runs on Debian that it runs in user mode. That’s
not exactly clear from the output message:
“(running on Debian, switching to user mode!)”
I took that to mean tlmgr detected a Debian system for some reason
beyond me, and that it also switched to user mode for some other
reason beyond me. It would be more clear if it said:
“(running on Debian THUS switching to user mode!)”
Users will still be astonished about why Debian implies that we can
only run as a user, but it would at least be clear that user mode is
an intentional consequence of being on Debian.