
Link currently points to /usr/lib/jvm/java-11-openjdk-amd64/bin/java Link best version is /usr/lib/jvm/java-11-openjdk-amd64/bin/java In this case, based on the above pattern for an example the command is update-alternatives -display java Update-alternatives -display program_name List the symbolic link associated with that program name.Įxecute the following command to list the symbolic link with the following pattern :
SYMBOLIC LINKER UPDATE INSTALL
Look in the article titled ‘How to Install update-alternatives tool for maintaining symbolic link of a command’ in this link to get more information about the availability of ‘update-alternatives’ tool.Ģ. If the ‘update-alternatives’ tool is available, the command will also be available.

Check the availability of ‘update-alternatives’ tool. These steps are compatible in Debian or Ubuntu Linux-based operating system distribution :ġ. It will affect ‘update-alternatives’ tool for choosing the symbolic link since the priority value changes. The following are steps for changing the priority of the symbolic link. In the end, the operating system will execute the program located in the path pointed by that symbolic link. Every time the program name executes, ‘update-alternatives’ tool will choose the symbolic link with the lowest priority value associated with that program name. The symbolic link with the lowest priority value will be chosen by the ‘update-alternatives’ tool. Using the priority value, ‘update-alternatives’ tool decide which symbolic link to use.

Every symbolic link has its own priority value. What is the deciding factor for ‘update-alternatives’ tool to select the symbolic link to use ?. But there can be only one path or location that can represent the actual location of the program executed at a time. It is useful to define a program name where there are many program path or location available. The command ‘update-alternatives’ is also useful to change the symbolic link priority of the corresponding program location. In this article, the usage of the ‘update-alternatives’ command is quite specific. This command is normally available in the Linux-based operating system distribution. This is another article related with the usage of ‘update-alternatives’ command.
