1. alternatives
Linux代码
alternatives version 1.3.13.5.EL4 - 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>
2. update-alternatives
Linux代码
alternatives version 1.3.13.5.EL4 - 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>
3、实例
举个使用例子吧,改变系统bin默认java的指向:
Linux代码
安装
#alternatives --install /usr/bin/java java /home/server/jdk1.6.0_21/bin/java 300
查询
#alternatives --display java
删除
#alternatives --remove java /home/server/jdk1.6.0_21/bin/java
1. alternatives
Linux代码
alternatives version 1.3.13.5.EL4 - 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>
2. update-alternatives
Linux代码
alternatives version 1.3.13.5.EL4 - 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>
3、实例
举个使用例子吧,改变系统bin默认java的指向:
Linux代码
安装
#alternatives --install /usr/bin/java java /home/server/jdk1.6.0_21/bin/java 300
查询
#alternatives --display java
删除
#alternatives --remove java /home/server/jdk1.6.0_21/bin/java
分享到:
相关推荐
CSS Framework Alternatives 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
主要介绍了linux软件版本管理命令update-alternatives使用详解的相关资料,需要的朋友可以参考下
CSS Framework Alternatives
主要介绍了linux使用update-alternatives切换java版本的相关资料,需要的朋友可以参考下
频率选择表面研究的先驱Munk老先生关于超材料研究的一些批判性思考,值得一读
文章资料imaging spectropolarimeter方面的文章
下面小编就为大家带来一篇使用Linux的alternatives命令替换选择软件的版本方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
CSS Framework Alternatives 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请...
update-alternatives creates, removes, maintains and displays information about the symbolic links comprising the Debian alternatives system. It is possible for several programs fulfilling the same or ...
Learn how to use lightweight CSS framework alternatives to build intuitive websites. This book presents five project examples that use Skeleton, Miligram, UI Kit, Material Design Lite and Susy.
2020年06月CFA三级Flashcard_Alternatives
Debian替代系统的另一种实现
您想将音频符号链接到其他位置吗? 使用此插件,音乐库中的每个文件都在不同的位置具有多个备用版本。 入门 您还至少需要甜菜1.4.7版本。 pip install --upgrade beets>=1.4.7 beets-alternatives 然后,。 您...
语言:English 每次打开新标签时,这是一种...如果您想提出新工具的建议,请与我们联系或在Github上使用代码。 此处提供Firefox版本:https://addons.mozilla.org/en-GB/firefox/addon/ethical-product-alternatives/
burpsuite_pro_v2.0.11beta版,可以在Windows和Kali 2.0中使用。 在windows下无需单独安装JDK或JRE环境,包中集成了。...使用英文版的同学,请使用update-alternatives --display java查看过滤选项,修改即可。
Skyblock-Extras-Alternatives 当您不想违反EULA时 我想这些mod也 姓名 描述 开发者 (前往 ) 许多对于Skyblock必不可少的东西: 更酷的狗屎: 和 性能增强,错误修复和QOL更改: ( ) 你知道这是什么 有...
FB Messenger 和 WhatsApp 的替代品,以及为什么你应该完全使用它们。 FB Messenger 的问题 - 隐私政策:他们可以使用您提供给他们的信息做什么 + FB 可以收集您创建、共享、发送消息或交流的任何内容。 这包括诸如...
DNS Protocol was originally ... By reviewing and analyzing two prevail blockchain-based DNS alternatives (Namecoin and Blockstack), it is concluded that although blockchain presently have problems tha
您可以使用版本控制进行测试,并尝试将该函数的旧版本引入当前代码库。 或者,您可以尝试自己重写和重新调试替代方案。 但是,如果替代方案仍然触手可及,至少在代码仍在积极开发中时,那不是很好吗? ALTERNATIVES...