Update-alternatives

From KevinWiki

(Difference between revisions)
Jump to: navigation, search
Kevin (Talk | contribs)
(New page: Category:Linux ==update-alternatives== ===Config=== $ sudo update-alternatives --config java There are 2 alternatives which provide `java'. Selection Alternative -------...)

Latest revision as of 06:08, 29 September 2008

update-alternatives

Config

$ sudo update-alternatives --config java

There are 2 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
          1    /usr/lib/jvm/java-6-sun/jre/bin/java
*+        2    /usr/lib/jvm/java-6-openjdk/jre/bin/java

Press enter to keep the default[*], or type selection number: 1
Using '/usr/lib/jvm/java-6-sun/jre/bin/java' to provide 'java'.
$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 36 2008-09-20 21:11 /etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java


References

http://www.wlug.org.nz/update-alternatives(8)

Personal tools