alternatives version 1.3.59 - Copyright (C) 2001 Red Hat, Inc. This may be freely redistributed under the terms of the GNU Public License. usage: alternatives --install <link> <name> <path> <priority> [--initscript <service>] [--slave <link> <name> <path>]* alternatives --remove <name> <path> alternatives --auto <name> alternatives --config <name> alternatives --display <name> alternatives --set <name> <path> common options: --verbose --test --help --usage --version --altdir <directory> --admindir <directory>
Here's the exmaple
root@syntax3rror ~]# /sbin/alternatives --install /usr/bin/java java /opt/jdk1.6.0_23/bin/java 1 [root@syntax3rror ~]# /sbin/alternatives --config java There are 4 programs which provide 'java'. Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/jre-1.7.0-openjdk/bin/java 2 /opt/jdk1.6.0_23/bin/java Enter to keep the current selection[+], or type selection number: 2
INFO: In openSuse the command was update-alternatives
How to setup alternative in fedora?
How to setup alternative in openSuse?