How To Install python-summershum on CentOS 7

In this tutorial we learn how to install python-summershum on CentOS 7. python-summershum is A fedmsg consumer that extracts and stores hashes of source files

Introduction

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

What is python-summershum

A fedmsg consumer that extracts and stores hashes of source files. summershum is composed of two components - A fedmsg consumer plugin that listens for org.fedoraproject.prod.git.lookaside.new messages. Whenever a contributor uploads a new source tarball to the lookaside cache, summershum will download that tarball, unpack it, and calculate the sha1 sum of every file in the tarball. Those hashes are then stored in a database to be queried later. - A cli tool summershum-cli that queries datagrepper for the fedmsg history. It then crawls through old lookaside messages to fill in data where it was missed. With the summershum database, we can then make some interesting queries in short time - how many files have this hash sum in all of fedora? and for which packages ? - we can easily find what is bundling what and generate a programatic list - we could check the db in taskotron tests - we could check to see how many packages include the full GPL license - how many packages have that license but with the old FSF address

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

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

sudo yum -y install python-summershum

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

sudo dnf -y install python-summershum

How To Uninstall python-summershum on CentOS 7

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

sudo dnf remove python-summershum

References

Summary

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