How To Install rkhunter on Fedora 36

In this tutorial we learn how to install rkhunter in Fedora 36. rkhunter is A host-based tool to scan for rootkits, backdoors and local exploits

Introduction

In this tutorial we learn how to install rkhunter on Fedora 36.

What is rkhunter

Rootkit Hunter (RKH) is an easy-to-use tool which checks computers running UNIX (clones) for the presence of rootkits and other unwanted tools.

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

Install rkhunter on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install rkhunter

Install rkhunter on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install rkhunter

How To Uninstall rkhunter on Fedora 36

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

sudo dnf remove rkhunter

rkhunter Package Contents on Fedora 36

/etc/cron.daily/rkhunter
/etc/logrotate.d/rkhunter
/etc/rkhunter.conf
/etc/sysconfig/rkhunter
/usr/bin/rkhunter
/usr/share/doc/rkhunter
/usr/share/doc/rkhunter/CHANGELOG
/usr/share/doc/rkhunter/LICENSE
/usr/share/doc/rkhunter/README
/usr/share/man/man8/rkhunter.8.gz
/usr/share/rkhunter
/usr/share/rkhunter/scripts
/usr/share/rkhunter/scripts/check_modules.pl
/var/lib/rkhunter
/var/lib/rkhunter/db
/var/lib/rkhunter/db/backdoorports.dat
/var/lib/rkhunter/db/i18n
/var/lib/rkhunter/db/i18n/cn
/var/lib/rkhunter/db/i18n/en
/var/lib/rkhunter/db/mirrors.dat
/var/lib/rkhunter/db/programs_bad.dat
/var/log/rkhunter

References

Summary

In this tutorial we learn how to install rkhunter on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).