daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Jun 8th, 2012 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. update-alternatives: --install needs <link> <name> <path> <priority>
  2.  
  3. Usage: update-alternatives [<option> ...] <command>
  4.  
  5. Commands:
  6.   --install <link> <name> <path> <priority>
  7.     [--slave <link> <name> <path>] ...
  8.                            add a group of alternatives to the system.
  9.   --remove <name> <path>   remove <path> from the <name> group alternative.
  10.   --remove-all <name>      remove <name> group from the alternatives system.
  11.   --auto <name>            switch the master link <name> to automatic mode.
  12.   --display <name>         display information about the <name> group.
  13.   --query <name>           machine parseable version of --display <name>.
  14.   --list <name>            display all targets of the <name> group.
  15.   --get-selections         list master alternative names and their status.
  16.   --set-selections         read alternative status from standard input.
  17.   --config <name>          show alternatives for the <name> group and ask the
  18.                            user to select which one to use.
  19.   --set <name> <path>      set <path> as alternative for <name>.
  20.   --all                    call --config on all alternatives.
  21.  
  22. <link> is the symlink pointing to /etc/alternatives/<name>.
  23.   (e.g. /usr/bin/pager)
  24. <name> is the master name for this link group.
  25.   (e.g. pager)
  26. <path> is the location of one of the alternative target files.
  27.   (e.g. /usr/bin/less)
  28. <priority> is an integer; options with higher numbers have higher priority in
  29.   automatic mode.
  30.  
  31. Options:
  32.   --altdir <directory>     change the alternatives directory.
  33.   --admindir <directory>   change the administrative directory.
  34.   --log <file>             change the log file.
  35.   --force                  allow replacing files with alternative links.
  36.   --skip-auto              skip prompt for alternatives correctly configured
  37.                            in automatic mode (relevant for --config only)
  38.   --verbose                verbose operation, more output.
  39.   --quiet                  quiet operation, minimal output.
  40.   --help                   show this help message.
  41.   --version                show the version.
  42. timmy@tydelhofmobile:~/Downloads$ sudo update-alternatives --install java java /usr/lib/jvm/java1.7.0/bin/java 2
  43. update-alternatives: error: alternative link is not absolute as it should be: java
  44. timmy@tydelhofmobile:~/Downloads$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java1.7.0/bin/java 2
  45. update-alternatives: error: alternative path /usr/lib/jvm/java1.7.0/bin/java doesn't exist.
  46. timmy@tydelhofmobile:~/Downloads$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java1.7.0/bin/java 3
  47. update-alternatives: error: alternative path /usr/lib/jvm/java1.7.0/bin/java doesn't exist.
  48. timmy@tydelhofmobile:~/Downloads$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java1.7.0/bin/java 2
  49. update-alternatives: error: alternative path /usr/lib/jvm/java1.7.0/bin/java doesn't exist.
  50. timmy@tydelhofmobile:~/Downloads$ ls /usr/lib/jvm/*
  51. /usr/lib/jvm/java-1.7.0-openjdk-amd64:
  52. bin  docs  jre  man
  53.  
  54. /usr/lib/jvm/java-7-openjdk-amd64:
  55. bin  docs  jre  man
  56.  
  57. /usr/lib/jvm/java-7-openjdk-common:
  58. jre
  59.  
  60. /usr/lib/jvm/jre1.7.0:
  61. bin  COPYRIGHT  lib  LICENSE  man  plugin  README  release  THIRDPARTYLICENSEREADME.txt  Welcome.html
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top