These links:
https://manpages.ubuntu.com/cgi-bin/search.py?q=update-alternatives
https://askubuntu.com/search?q=update-alternatives
... do not provide any direct insight into whether update-alternatives actually can be used for e.g. using a more recent python, or pyside6 as an alternative for pyside2 (focal).
The man page for 20.04 states:
Different packages providing the same file need to do so cooperatively. In other
words,
the usage of update-alternatives is mandatory for all involved packages in such case. It
is not possible to override some file in a package that does not employ the
update-alternatives mechanism.
... which makes me wary of using it (for python and pyside6 specifically right now).
Any insights into actually using it for e.g. pyside6 specifically?
Noted after writing the above: no pyside6 available through apt-get.