From e8b8b2536454aa45c661dd7e8fadc7c66bd76390 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 23 Jun 2024 02:02:11 +0200 Subject: [PATCH] chore(kb): start article about update-alternatives --- knowledge base/update-alternatives.md | 69 +++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 knowledge base/update-alternatives.md diff --git a/knowledge base/update-alternatives.md b/knowledge base/update-alternatives.md new file mode 100644 index 0000000..914770d --- /dev/null +++ b/knowledge base/update-alternatives.md @@ -0,0 +1,69 @@ +# `update-alternatives` + +TODO + +Intro + + + +1. [TL;DR](#tldr) +1. [Further readings](#further-readings) + 1. [Sources](#sources) + +## TL;DR + + + +
+ Usage + +```sh +# 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 + +- [`update-alternatives`: managing multiple versions of commands and files][update-alternatives: managing multiple versions of commands and files] + + + + + + + + +[update-alternatives: managing multiple versions of commands and files]: https://documentation.suse.com/sles/15-SP5/html/SLES-all/cha-update-alternative.html