-
Notifications
You must be signed in to change notification settings - Fork 348
Install latest GMT on RHEL CentOS
Dongdong Tian edited this page Aug 7, 2020
·
7 revisions
GMT binary packages are available from Extra Packages for Enterprise Linux (EPEL). However, EPEL is far behind packaging a recent version. We provide the GMT official RPM repository to allow RHEL/CentOS users access the latest GMT releases in an easy way.
For RHEL/CentOS, run:
# install epel-release
yum install epel-release
# Enable the RPM repository
## RHEL/CentOS 8 only
yum config-manager --set-enabled PowerTools
yum install yum-plugin-copr
yum copr enable genericmappingtools/gmt
## RHEL/CentOS 7 only
yum install yum-plugin-copr
yum copr enable genericmappingtools/gmt
## RHEL/CentOS 6 only
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
# Install GMT
yum install gmt
# Update to the latest version if available
yum update gmt
You may also install other optional dependencies for more capabilities within GMT:
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-`rpm -E %rhel`.noarch.rpm
yum install GraphicsMagick ffmpeg gdal
Note: If you already installed the GMT packages provided by EPEL, you have to uninstall them before installing the new GMT packages provided by the official GMT repository. You can uninstall the older packages by:
yum remove GMT dcw-gmt gshhg-gmt-nc4 gshhg-gmt-nc4-full gshhg-gmt-nc4-high