How To Install python2-setuptools_scm on Rocky Linux 8

In this tutorial we learn how to install python2-setuptools_scm on Rocky Linux 8. python2-setuptools_scm is Blessed package to manage your versions by scm tags

Introduction

In this tutorial we learn how to install python2-setuptools_scm on Rocky Linux 8.

What is python2-setuptools_scm

Setuptools_scm handles managing your python package versions in scm metadata. It also handles file finders for the suppertes scms.

We can use yum or dnf to install python2-setuptools_scm on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-setuptools_scm.

Install python2-setuptools_scm on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python2-setuptools_scm

Install python2-setuptools_scm on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python2-setuptools_scm

How To Uninstall python2-setuptools_scm on Rocky Linux 8

To uninstall only the python2-setuptools_scm package we can use the following command:

sudo dnf remove python2-setuptools_scm

python2-setuptools_scm Package Contents on Rocky Linux 8

/usr/lib/python2.7/site-packages/setuptools_scm
/usr/lib/python2.7/site-packages/setuptools_scm-1.15.7-py2.7.egg-info
/usr/lib/python2.7/site-packages/setuptools_scm-1.15.7-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/setuptools_scm-1.15.7-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/setuptools_scm-1.15.7-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/setuptools_scm-1.15.7-py2.7.egg-info/entry_points.txt
/usr/lib/python2.7/site-packages/setuptools_scm-1.15.7-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/setuptools_scm-1.15.7-py2.7.egg-info/zip-safe
/usr/lib/python2.7/site-packages/setuptools_scm/__init__.py
/usr/lib/python2.7/site-packages/setuptools_scm/__init__.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/__init__.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/__main__.py
/usr/lib/python2.7/site-packages/setuptools_scm/__main__.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/__main__.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/discover.py
/usr/lib/python2.7/site-packages/setuptools_scm/discover.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/discover.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/git.py
/usr/lib/python2.7/site-packages/setuptools_scm/git.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/git.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/hacks.py
/usr/lib/python2.7/site-packages/setuptools_scm/hacks.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/hacks.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/hg.py
/usr/lib/python2.7/site-packages/setuptools_scm/hg.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/hg.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/integration.py
/usr/lib/python2.7/site-packages/setuptools_scm/integration.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/integration.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/utils.py
/usr/lib/python2.7/site-packages/setuptools_scm/utils.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/utils.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/version.py
/usr/lib/python2.7/site-packages/setuptools_scm/version.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/version.pyo
/usr/lib/python2.7/site-packages/setuptools_scm/win_py31_compat.py
/usr/lib/python2.7/site-packages/setuptools_scm/win_py31_compat.pyc
/usr/lib/python2.7/site-packages/setuptools_scm/win_py31_compat.pyo
/usr/share/doc/python2-setuptools_scm
/usr/share/doc/python2-setuptools_scm/README.rst

References

Summary

In this tutorial we learn how to install python2-setuptools_scm on Rocky Linux 8 using yum and dnf.