Очень могучий инструмент администрирования ПО Linux!
По команде очень мало описаний и обсуждений (т.е. фактически просто нет), кроме man и --help ...
Есть только частные примеры переключения версий Java между Open JDK & Sun JDK.
В Debian (и других DEB?) эта утилита называется update-alternatives.
Код: Выделить всё
[olej@dell tasks]$ alternatives --help
alternatives, версия 1.7, (C) 2001 Red Hat, Inc.
Может свободно распространяться в рамках GNU Public License.
формат: alternatives --install <ссылка> <имя> <путь> <приоритет>
[--initscript <служба>]
[--family <family>]
[--slave <ссылка> <имя> <путь>]*
alternatives --remove <имя> <путь>
alternatives --auto <имя>
alternatives --config <имя>
alternatives --display <имя>
alternatives --set <имя> <путь>
alternatives --list
общие параметры: --verbose --test --help --usage --version
--altdir <каталог> --admindir <каталог>
Код: Выделить всё
[olej@dell tasks]$ man alternatives
UPDATE-ALTERNATIVES(8) System Manager's Manual UPDATE-ALTERNATIVES(8)
NAME
alternatives - maintain symbolic links determining default commands
SYNOPSIS
alternatives [options] --install link name path priority [--slave link name path]... [--initscript service] [--family name]
alternatives [options] --remove name path
alternatives [options] --set name path
alternatives [options] --auto name
alternatives [options] --display name
alternatives [options] --config name
alternatives [options] --list name
DESCRIPTION
alternatives creates, removes, maintains and displays information about the symbolic links comprising the alternatives system. The
alternatives system is a reimplementation of the Debian alternatives system. It was rewritten primarily to remove the dependence on
perl; it is intended to be a drop in replacement for Debian's update-dependencies script. This man page is a slightly modified ver‐
sion of the man page from the Debian project.
...
Код: Выделить всё
NAME
alternatives - maintain symbolic links determining default commands
...