

config and select the entry marked as automatic). In order to return to the automatic mode (or you can rerun Depending on the choice made, the link group might You will then be prompted for your choice regarding this Of the choices for the link group of which given name is the When using the -config option, update-alternatives will list all OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode ) Update-alternatives: using /usr/lib/jvm/java-8-openjdk-arm64/jre/bin/java to provide /usr/bin/java (java ) in manual mode Press to keep the current choice, or type selection number: 2

* 1 /usr/lib/jvm/java-11-openjdk-arm64/bin/java 1111 manual modeĢ /usr/lib/jvm/java-8-openjdk-arm64/jre/bin/java 1081 manual mode There are 2 choices for the alternative java (providing /usr/bin/java ).Ġ /usr/lib/jvm/java-11-openjdk-arm64/bin/java 1111 auto mode Which is another symbol link, it point to the current java path.

In Debian/Ubunut, java is symbol link in /bin/java which point to /etc/alternatives/java, This is done so that the systemĪdministrator’s changes can be confined within the /usr/local/etc Instead, it is a symbolic link to a name in theĪlternatives directory, which in turn is a symbolic link to theĪctual file referenced. The generic name is not a direct symbolic link to the selectedĪlternative. The alternatives system will not alter this setting until

Override this and cause it to refer to /usr/bin/ed instead, and For example, if the textĮditors ed(1) and nvi(1) are both installed on the system, theĪlternatives system will cause the generic name /usr/bin/editor System administrator together determine which actual file is Generic name in the filesystem is shared by all files providing Invoke if the user has not specified a particular preference.ĭebian’s alternatives system aims to solve this problem. This gives choice to the users of a system,Īllowing each to use a different editor, if desired, but makes itĭifficult for a program to make a good choice for an editor to For example, many systems have several text editors Similar functions to be installed on a single system at the same It is possible for several programs fulfilling the same or Information about the symbolic links comprising the Debian alternatives system. Update-alternatives creates, removes, maintains and displays In Linux, like Debian or Ubuntu system, want to install different version of java and can swith system java version easily, the easiest solution is use update-alternatives. Use update-java-alternatives to update java version.Switch java version with update-alternative.
