How To Install hg-git on CentOS 7
Introduction
In this tutorial we learn how to install hg-git
on CentOS 7.
What is hg-git
This is the Hg-Git plugin for Mercurial, adding the ability to push and pull to/from a Git server repository from Hg. This means you can collaborate on Git based projects from Hg, or use a Git server as a collaboration point for a team with developers using both Git and Hg. It can also convert commits/changesets losslessly from one system to another, so you can push via an Hg repository and another Hg client can pull it and their changeset node ids will be identical - Mercurial data does not get lost in translation.
We can use yum
or dnf
to install hg-git
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install hg-git.
Install hg-git on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install hg-git
using yum
by running the following command:
Install hg-git 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.
After updating yum database, We can install hg-git
using dnf
by running the following command:
How To Uninstall hg-git on CentOS 7
To uninstall only the hg-git
package we can use the following command:
References
Summary
In this tutorial we learn how to install hg-git
on CentOS 7 using yum
and dnf
.