How To Install cptutils on CentOS 7

In this tutorial we learn how to install cptutils on CentOS 7. cptutils is Utilities to manipulate and translate color gradients

Introduction

In this tutorial we learn how to install cptutils on CentOS 7.

What is cptutils

The cptutils package contains a number of utilities for the manipulation of color gradients; mainly for translating between different formats. Formats supported include ggr (GIMP gradient), cpt (GMT color palette table), avl (Arcview Legend), lut (xmedcon), svg, and version 3 of the grd format. The cptutils package was written to aid the construction of the cpt archive cpt-city http where thousands of gradients can be downloaded.

We can use yum or dnf to install cptutils on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install cptutils.

Install cptutils on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install cptutils using yum by running the following command:

sudo yum -y install cptutils

Install cptutils on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install cptutils using dnf by running the following command:

sudo dnf -y install cptutils

How To Uninstall cptutils on CentOS 7

To uninstall only the cptutils package we can use the following command:

sudo dnf remove cptutils

References

Summary

In this tutorial we learn how to install cptutils on CentOS 7 using yum and dnf.