|
|

楼主 |
发表于 2006-2-23 12:25:56
|
显示全部楼层
呵呵
如果有兄弟在sarge/testing下测试一下报告上来
就更完美了
有兄弟问我关于update-alternatives怎么用
其实man一下就知道了
很简单
具体功能作用google估计能找到吧
看这个简单的描述就知道怎么用了
- $update-alternatives
- update-alternatives: need --display, --config, --set, --install, --remove, --all, --remove-all or --auto
- Debian update-alternatives 1.13.16.
- Copyright (C) 1995 Ian Jackson.
- Copyright (C) 2000-2002 Wichert Akkerman
- This is free software; see the GNU General Public Licence
- version 2 or later for copying conditions. There is NO warranty.
- Usage: update-alternatives --install <link> <name> <path> <priority>
- [--slave <link> <name> <path>] ...
- update-alternatives --remove <name> <path>
- update-alternatives --remove-all <name>
- update-alternatives --auto <name>
- update-alternatives --display <name>
- update-alternatives --list <name>
- update-alternatives --config <name>
- update-alternatives --set <name> <path>
- update-alternatives --all
- <name> is the name in /etc/alternatives.
- <path> is the name referred to.
- <link> is the link pointing to /etc/alternatives/<name>.
- <priority> is an integer; options with higher numbers are chosen.
- Options: --verbose|--quiet --test --help --version
- --altdir <directory> --admindir <directory>
复制代码
我开始也是没有耐心去看
后来对照我帖子中引用别人写的那几句推敲了一下也大概知道了
update-alternatives --install <link> <name> <path> <priority>
这一句是你创建某个可选项符号链接(姑且这么译吧)
<link>是指你的目标链接,如果你按照我上篇帖子中的办法做了的话就会发现
- $ ls -a /etc/X11/xinit/xinput.d/
- total 8
- drwxr-xr-x 2 root root 176 2006-02-23 01:55 .
- drwxr-xr-x 3 root root 128 2006-01-17 20:21 ..
- -rw-r--r-- 1 root root 74 2006-02-23 00:57 fcitx
- lrwxrwxrwx 1 root root 30 2006-02-23 00:15 ja_JP -> /etc/alternatives/xinput-ja_JP
- -rw-r--r-- 1 root root 52 2005-10-26 17:10 none
- lrwxrwxrwx 1 root root 30 2006-02-23 01:55 zh_CN -> /etc/alternatives/xinput-zh_CN
- lrwxrwxrwx 1 root root 36 2006-02-23 01:55 zh_CN.UTF-8 -> /etc/alternatives/xinput-zh_CN.UTF-8
复制代码
<name>是指/etc/alternatives中的名称,也就是当你用update-alternatives --config ***中***的名称
<patch>当然就是你的链接的源文件了,在上面例子中当然就是fcitx了
<priority>是优先级,我不太懂,不过README.debian中说要设置成50,那你也就按它说的做就行了 |
|