「Linux」- update-alternatives

update-alternatives
https://stackoverflow.com/questions/7832892/how-to-change-the-default-gcc-compiler-in-ubuntu

# 添加新的选项(以Zabbix为例):

#!/bin/sh

# 命令格式:alternatives --install <link> <name> <path> <priority>
update-alternatives --install \
    /usr/share/zabbix/fonts/graphfont.ttf \
    zabbix-web-font \
    /usr/share/fonts/wqy-microhei/wqy-microhei.ttc \
    20

# 查看所有
Debian: update-alternatives --get-selections
CentOS: update-alternatives --list

参考文献

How to change the default GCC compiler in Ubuntu?
What exactly does `update-alternatives` do?
Is there a way to list all configurable `alternatives` (symlinks for similar commands) on the system?