The TeX distribution provided by apt on Ubuntu is not the latest (2023 at the time of this question). So one may want to install directly from TeX Live.
At this point an important choice is whether one wants to install the distribution for just a single user, or globally in the system so that all existing and future users can access it.
The official Guide does a great job of explaining everything. However when it comes to the question of system-wide installation vs single-user installation, it says:
If you want to make these changes globally, or for a user newly added to the system, then you are on your own; there is just too much variation between systems in how and where these things are configured.
Fair enough.
Doubts appear already when running the first install command: should one run
perl ./install-tl
or
sudo perl ./install-tl
?
Thereafter comes all the complicated (for a low-level user like me) situation of configuring PATHs and so on.
TeX and AskUbuntu have plenty of scattered questions related to this, but often they give different solutions (or at least they look different to a low-level user), and many are a few years old, and I'm unsure whether they still apply or not.
So I wonder if you can forward me to a reliable guide that addresses these points in a systematic manner, for Ubuntu and derivates.
I'm really lost with all options and contradicting instructions and warnings scattered a bit everywhere :(
sudoto install in some system directory (like/usr/local/texliveor similar), and not choose a portable installation. Notice however that in Ubuntu, from my experience, you need a minimalaptinstallation or you'll have a dependency hell... – Rmano Jun 21 '23 at 11:10sudo? For example, some answers here speak of runningsudo visudoor similar things. What you say about the apt installation is frightening. Again I think there's need of a reliable guide out there. – pglpm Jun 21 '23 at 11:16/etc/profile.d/...). I think that asking a specific question about what isn't working would be more useful. You can also look at this: https://askubuntu.com/questions/24937/how-do-i-set-path-variables-for-all-users-on-a-server – Rmano Jun 21 '23 at 11:24sudo visudo: this is for giving a normal user the right to run things as root. Maybe to allow them to runtlmgr? I would really not do that. If the installation is system-wide, the system administrator should be the one doing this kind of things. This is why in my machine I prefer using a portable installation. – Rmano Jun 21 '23 at 11:27sudo ./install-tl. But then a comment says "that's not recommended. You should change ownership of etc/local/... instead". For setting PATH variables, one answer says to modify something in/etc/profile; but then another says no, the relevant directory has changed. Another answer says to usesudo visudo, but a comment above says that's dangerous... Sorry for the lack of links, I've been roaming here for 6 hours today. – pglpm Jun 21 '23 at 13:14README.mdhas been written, not when the latest update has been written. And ”latest version” indeed means latest version. Try it Thomas, try it … But, because of your problems in believing, I've also added an issue. I hope, the three year numbers will be removed from the README. – cabohah Jun 21 '23 at 15:52sudo, so one wants to be extra careful. – pglpm Jun 21 '23 at 16:05sudoas you would have to usingapt, because they do something similar. – cabohah Jun 21 '23 at 16:12