Skip to content

Install latest GMT on ArchLinux

holishing edited this page Apr 1, 2021 · 4 revisions

It's easier to manage installed content and dependencies than directly building and manually make install in ArchLinux.

# Full update system packages first
sudo pacman -Syu

# Install tools for building AUR packages
sudo pacman -S base-devel

# Use git command to clone non-official AUR repo of gmt
# Here are two options. **You just have to clone one of them:**
# If you encounter some problems in those repo,
# you can report to the authors first, or choose another one to clone
git clone https://aur.archlinux.org/gmt.git

# alternative repo, for testing stable/rc release in version 6.x branch
git clone https://aur.archlinux.org/gmt6.git gmt

# Optional recommended packages
git clone https://aur.archlinux.org/gmt-coast.git
git clone https://aur.archlinux.org/gmt-cpt-city.git
git clone https://aur.archlinux.org/gmt-dcw.git

# use makepkg to build packages and use pacman to install
cd gmt
makepkg -sc
sudo pacman -U *.pkg.tar.zst

Note:

  1. Binary packages of gmt are still not available in ArchlinuxCN repo yet.
  2. It's suggest to make package in a clean user account without special environment variable or custom package (e.g. Anaconda Python 3) installed, if you want to make sure this thing, you may consider Building in a clean chroot.
Clone this wiki locally