How To Install bogofilter on CentOS 7

In this tutorial we learn how to install bogofilter on CentOS 7. bogofilter is Fast anti-spam filtering by Bayesian statistical analysis

Introduction

In this tutorial we learn how to install bogofilter on CentOS 7.

What is bogofilter

Bogofilter is a Bayesian spam filter. In its normal mode of operation, it takes an email message or other text on standard input, does a statistical check against lists of “good” and “bad” words, and returns a status code indicating whether or not the message is spam. Bogofilter is designed with fast algorithms (including Berkeley DB system), coded directly in C, and tuned for speed, so it can be used for production by sites that process a lot of mail.

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

Install bogofilter on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install bogofilter using yum by running the following command:

sudo yum -y install bogofilter

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

sudo dnf -y install bogofilter

How To Uninstall bogofilter on CentOS 7

To uninstall only the bogofilter package we can use the following command:

sudo dnf remove bogofilter

References

Summary

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