-
Notifications
You must be signed in to change notification settings - Fork 348
Install latest GMT on RHEL CentOS
Dongdong Tian edited this page Feb 20, 2022
·
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 to access the latest GMT releases in an easy way.
To install the latest GMT on RHEL/CentOS 7 & 8 , run:
# install epel-release
sudo yum install epel-release
# RHEL/CentOS 8 users need to enable PowerTools repository first
sudo yum config-manager --set-enabled powertools
# Enable the RPM repository
sudo yum install yum-plugin-copr
sudo yum copr enable genericmappingtools/gmt
# Install GMT
sudo yum install gmt
# Update to the latest version if available
sudo yum update gmt
You may also install other optional dependencies for more capabilities within GMT:
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-`rpm -E %rhel`.noarch.rpm
sudo 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:
sudo yum remove GMT dcw-gmt gshhg-gmt-nc4 gshhg-gmt-nc4-full gshhg-gmt-nc4-high