Files
oam/knowledge base/update-alternatives.md

1.4 KiB

update-alternatives

TODO

Intro

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Do not install custom alternatives for python3 on SUSE systems.
/usr/bin/python3 does not have update alternatives there due to system tools dependencies and always points to specific tested versions. Creating custom python3 alternatives pointing to different versions — i.e., python3.11will break dependent system tools.

Usage
# Get configured alternatives and their values.
update-alternatives --get-selections

# Show the full list of alternatives for commands.
update-alternatives --display 'java'

# *Interactively* change the default alternative for commands.
update-alternatives --config 'java'
update-alternatives --config --all

Further readings

Sources