Fresh install of TeXLive 2021 didn’t set system variables Linux

texliveupdate

After installing texlive2021 I noticed that "tex" still referred to the 2020 version which I have removed after installing texlive2021.
I thought a restart would help, but now it just offers me to install texlive-binaries using the package manager.

I am thinking about purging everything and reinstalling, but I thought I might ask here first.
Commands no longer working are:

tex, pdftex, latex, xetex, xelatex, kpsewhich, tlmgr

/usr/local/texlive/ contains 2021 as expected.

Best Answer

The installation instructions explictly say that you need to set the PATH after the install.

https://tug.org/texlive/quickinstall.html

section Post-install: setting PATH