Thursday, January 22, 2009

Debian /etc/alternatives

'/etc/alternatives' shows, using symbolic links, which programs are executed as default. For example, '/usb/bin/java' may have different versions, but by default, we can select one of them.

To edit (select, update, remove) this, we'll use 'update-alternatives'.

For selecting which version of java we want to use:
$ update-alternatives --config java

For adding an alternative version of java:
$ update-alternatives --install java java /usr/java/jre1.6.0_11/bin/java 0

No comments: