How To Install mercurial-hgk on CentOS 7

In this tutorial we learn how to install mercurial-hgk on CentOS 7. mercurial-hgk is Hgk interface for mercurial

Introduction

In this tutorial we learn how to install mercurial-hgk on CentOS 7.

What is mercurial-hgk

A Mercurial extension for displaying the change history graphically using Tcl/Tk. Displays branches and merges in an easily understandable way and shows diffs for each revision. Based on gitk for the git SCM. Adds the “hg view” command. See http documentation.

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

Install mercurial-hgk on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install mercurial-hgk using yum by running the following command:

sudo yum -y install mercurial-hgk

Install mercurial-hgk 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 mercurial-hgk using dnf by running the following command:

sudo dnf -y install mercurial-hgk

How To Uninstall mercurial-hgk on CentOS 7

To uninstall only the mercurial-hgk package we can use the following command:

sudo dnf remove mercurial-hgk

References

Summary

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