How To Install emacs-mercurial on CentOS 7

In this tutorial we learn how to install emacs-mercurial on CentOS 7. emacs-mercurial is Mercurial version control system support for Emacs

Introduction

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

What is emacs-mercurial

Contains byte compiled elisp packages for mercurial. To get started show help with C-c h h

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

Install emacs-mercurial on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install emacs-mercurial

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

sudo dnf -y install emacs-mercurial

How To Uninstall emacs-mercurial on CentOS 7

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

sudo dnf remove emacs-mercurial

References

Summary

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