How To Install dspam-hash on CentOS 7

In this tutorial we learn how to install dspam-hash on CentOS 7. dspam-hash is Hash storage driver for libdspam

Introduction

In this tutorial we learn how to install dspam-hash on CentOS 7.

What is dspam-hash

The self-contained Hash-Based driver (inspired by Bill Yerazunis’ CRM Sparse Spectra algorithm) is the fastest solution by far and requires no dependencies, supports an auto-extend feature to grow the file size as needed, and is very fast and compact. It does, however, lack some features (such as merged groups support) and uses a lot of memory to mmap() users. The driver is thread-safe (required for running DSPAM in server daemon mode).

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

Install dspam-hash on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install dspam-hash

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

sudo dnf -y install dspam-hash

How To Uninstall dspam-hash on CentOS 7

To uninstall only the dspam-hash package we can use the following command:

sudo dnf remove dspam-hash

References

Summary

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