来源:https://docs.gmt-china.org/6.1/install/linux/
RHEL/CentOS
RHEL/CentOS 6/7/8 用户可以启用 GMT官方RPM仓库 以安装GMT最新版本。
安装方式如下:
# 安装 epel-release yum install epel-release # 启用 PowerTools 仓库 (仅限于 RHEL/CentOS 8 用户) yum config-manager --set-enabled PowerTools # 启用GMT官方仓库 (仅限于RHEL/CentOS 7/8 用户) yum install yum-plugin-copr yum copr enable genericmappingtools/gmt # 启用GMT官方仓库 (仅限于RHEL/CentOS 6 用户) wget https://copr.fedorainfracloud.org/coprs/genericmappingtools/gmt/repo/epel-6/genericmappingtools-gmt-epel-6.repo -O /etc/yum.repos.d/genericmappingtools-gmt-epel-6.repo # 安装最新版GMT yum install gmt # 当有新版本发布时可直接更新 yum update gmt