Why is alternatives command used when installing Java on a Linux machine

后端 未结 3 604
借酒劲吻你
借酒劲吻你 2021-01-08 01:03

The below command is need when installing Java on a Linux machine (saw the command in a tutorial).

alternatives --install /usr/bin/java java /usr/java/jre1.         


        
3条回答
  •  孤独总比滥情好
    2021-01-08 01:53

    To address what the 20000 is for, this is the priority for that particular alternative. Per the man page:

    Each alternative has a priority associated with it. When a link group is in automatic mode, the alternatives pointed to by members of the group will be those which have the highest priority.

提交回复
热议问题