Redhat下的alternatives命令和机制

Redhat最早在7.3的release时从Debian等系统那里引入了alternatives机制,以实现多软件包对应同一应用、服务的需要。

  • Red Hat Linux 现在包括了一个 Debian 另选系统的端口,
    作为一种支持提供某项服务的多种软件包的途径。
    每一个在多种软件包内通用的二进制程序/文件都被
    换成了一个到 /etc 的符号链接;然后
    它将会被解析到该文件的不同选择。例如:
    /usr/sbin/sendmail -> /etc/alternatives/mta ->
    /usr/sbin/sendmail.sendmail

    这些符号链接是由
    /usr/sbin/alternatives 来添加和管理的。详情请参阅 man 8
    alternatives

    目前,Red Hat Linux 提供 Sendmail 和 Postfix 这两种邮件传输代理
    (MTA)。关于打印守护进程的选项,可选的是 LPRng 和 CUPS。
    请注意,LPRng 和 CUPS 的配置是完全分开的。如果你从一种
    打印系统切换到另一种,你将必须重新配置你的打印机。与之类似,
    postfix 和 sendmail 也有各自分开的配置文件。

  • 最新的Redhat中中文输入法的设置也使用了alternatives机制,/etc/alternatives/zh_CN就是相关的应用。

  • 主页alternatives


  • Redhat alternatives 命令使用
    --set
    --auto
    --display
    --config
    --remove
    --install

Comments

Popular posts from this blog

Freeware Software Top 300 from winAddons.Com!

What is DevOPS?

RPM Build Tips!