How To Install python-hgdistver on CentOS 7

In this tutorial we learn how to install python-hgdistver on CentOS 7. python-hgdistver is A Python library to generate package version info from mercurial

Introduction

In this tutorial we learn how to install python-hgdistver on CentOS 7.

What is python-hgdistver

hgdistver is a simple drop-in to support setup.py in mercurial based projects. It’s supposed to generate version numbers from mercurial’s meta-data. It tries to use the current tag and falls back to the next reachable tagged ancestor and using the distance to it as .post marker.

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

Install python-hgdistver on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install python-hgdistver

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

sudo dnf -y install python-hgdistver

How To Uninstall python-hgdistver on CentOS 7

To uninstall only the python-hgdistver package we can use the following command:

sudo dnf remove python-hgdistver

References

Summary

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