How To Install bogofilter on Fedora 34

bogofilter is Fast anti-spam filtering by Bayesian statistical analysis

Introduction

In this tutorial we learn how to install bogofilter on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install bogofilter.

Install bogofilter on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install bogofilter

Install bogofilter on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install bogofilter

How To Uninstall bogofilter on Fedora 34

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

sudo dnf remove bogofilter

bogofilter Package Contents on Fedora 34

/etc/bogofilter.cf
/usr/bin/bf_compact
/usr/bin/bf_copy
/usr/bin/bf_tar
/usr/bin/bogofilter
/usr/bin/bogolexer
/usr/bin/bogotune
/usr/bin/bogoutil
/usr/lib/.build-id
/usr/lib/.build-id/94
/usr/lib/.build-id/94/e43b562a9a2a3fa7a40979f05cb999d8595ec9
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/85bc9a169ba7eae35233ee45dfdf0140ec53e3
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/a63ee2b7b907a3e293147d4115b872b174c7ed
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/b563fee8e45171703261a4bacaa92d30e79102
/usr/share/doc/bogofilter
/usr/share/doc/bogofilter/AUTHORS
/usr/share/doc/bogofilter/COPYING
/usr/share/doc/bogofilter/NEWS
/usr/share/doc/bogofilter/README
/usr/share/doc/bogofilter/README.git
/usr/share/doc/bogofilter/RELEASE.NOTES
/usr/share/doc/bogofilter/TODO
/usr/share/doc/bogofilter/bogofilter-SA-2002-01
/usr/share/doc/bogofilter/bogofilter-SA-2004-01
/usr/share/doc/bogofilter/bogofilter-SA-2005-01
/usr/share/doc/bogofilter/bogofilter-SA-2005-02
/usr/share/doc/bogofilter/bogofilter-SA-2010-01
/usr/share/doc/bogofilter/bogofilter-SA-2012-01
/usr/share/doc/bogofilter/bogofilter-tuning.HOWTO.html
/usr/share/doc/bogofilter/bogofilter.cf.example
/usr/share/doc/bogofilter/contrib
/usr/share/doc/bogofilter/contrib/.deps
/usr/share/doc/bogofilter/contrib/.deps/.dirstamp
/usr/share/doc/bogofilter/contrib/.dirstamp
/usr/share/doc/bogofilter/contrib/README.contrib
/usr/share/doc/bogofilter/contrib/README.randomtrain
/usr/share/doc/bogofilter/contrib/bfproxy.pl
/usr/share/doc/bogofilter/contrib/bogo.R
/usr/share/doc/bogofilter/contrib/bogofilter-milter.pl
/usr/share/doc/bogofilter/contrib/bogofilter-qfe.sh
/usr/share/doc/bogofilter/contrib/bogogrep.c
/usr/share/doc/bogofilter/contrib/bogogrep.o
/usr/share/doc/bogofilter/contrib/bogominitrain.pl
/usr/share/doc/bogofilter/contrib/dot-qmail-bogofilter-default
/usr/share/doc/bogofilter/contrib/mailfilter.example
/usr/share/doc/bogofilter/contrib/mime.get.rfc822.pl
/usr/share/doc/bogofilter/contrib/parmtest.sh
/usr/share/doc/bogofilter/contrib/printmaildir.pl
/usr/share/doc/bogofilter/contrib/procmailrc.example
/usr/share/doc/bogofilter/contrib/randomtrain.sh
/usr/share/doc/bogofilter/contrib/scramble.sh
/usr/share/doc/bogofilter/contrib/spamitarium.pl
/usr/share/doc/bogofilter/contrib/stripsearch.pl
/usr/share/doc/bogofilter/contrib/trainbogo.sh
/usr/share/doc/bogofilter/contrib/vm-bogofilter.el
/usr/share/doc/bogofilter/html
/usr/share/doc/bogofilter/html/bf_compact.html
/usr/share/doc/bogofilter/html/bf_copy.html
/usr/share/doc/bogofilter/html/bf_tar.html
/usr/share/doc/bogofilter/html/bogofilter-faq-fr.html
/usr/share/doc/bogofilter/html/bogofilter-faq-it.html
/usr/share/doc/bogofilter/html/bogofilter-faq.html
/usr/share/doc/bogofilter/html/bogofilter-tuning.HOWTO.html
/usr/share/doc/bogofilter/html/bogofilter.html
/usr/share/doc/bogofilter/html/bogolexer.html
/usr/share/doc/bogofilter/html/bogotune-faq.html
/usr/share/doc/bogofilter/html/bogotune.html
/usr/share/doc/bogofilter/html/bogoupgrade.html
/usr/share/doc/bogofilter/html/bogoutil.html
/usr/share/doc/bogofilter/integrating-with-postfix
/usr/share/doc/bogofilter/integrating-with-qmail
/usr/share/doc/bogofilter/programmer
/usr/share/doc/bogofilter/programmer/OS2
/usr/share/doc/bogofilter/programmer/OS2/configure.os2
/usr/share/doc/bogofilter/programmer/README.RISC-OS
/usr/share/doc/bogofilter/programmer/README.freebsd
/usr/share/doc/bogofilter/programmer/README.hp-ux
/usr/share/doc/bogofilter/programmer/README.memory-checking
/usr/share/doc/bogofilter/programmer/README.osx
/usr/share/doc/bogofilter/programmer/RISC-OS
/usr/share/doc/bogofilter/programmer/RISC-OS/gsl
/usr/share/doc/bogofilter/programmer/RISC-OS/gsl/Makefile
/usr/share/doc/bogofilter/programmer/RISC-OS/src
/usr/share/doc/bogofilter/programmer/RISC-OS/src/Makefile
/usr/share/doc/bogofilter/xml
/usr/share/doc/bogofilter/xml/bf_compact.xml
/usr/share/doc/bogofilter/xml/bf_copy.xml
/usr/share/doc/bogofilter/xml/bf_tar.xml
/usr/share/doc/bogofilter/xml/bogofilter.xml
/usr/share/doc/bogofilter/xml/bogolexer.xml
/usr/share/doc/bogofilter/xml/bogotune.xml
/usr/share/doc/bogofilter/xml/bogoupgrade.xml
/usr/share/doc/bogofilter/xml/bogoutil.xml
/usr/share/man/man1/bf_compact.1.gz
/usr/share/man/man1/bf_copy.1.gz
/usr/share/man/man1/bf_tar.1.gz
/usr/share/man/man1/bogofilter.1.gz
/usr/share/man/man1/bogolexer.1.gz
/usr/share/man/man1/bogotune.1.gz
/usr/share/man/man1/bogoutil.1.gz

References

Summary

In this tutorial we learn how to install bogofilter on Fedora 34 using yum and dnf.