How to install rkhunter on CentOS 6

Share this post to your friends !
  • 1

SystemMen - Rootkit Hunter (rkhunter) is a small tool for Linux to scan rootkits, backdoors and local exploits. As the name implies, you can use it to scan rootkits on your system automatically. This article will guide you to install rkhunter on CentOS 6.

Install rkhunter on CentOS 6

First, you need to install the epel repository. Type the command below:

yum install epel-release -y

Next, type the following command to install rkhunter:

yum install rkhunter -y

After the installation, we need to update the database for rkhunter, you type:

rkhunter --update
how-to-install-rkhunter-on-centos-6-01 How to install rkhunter on CentOS 6
Update database for rkhunter.

Update the properties file. This is necessary, at the first install, when you run the propupd command, rkhunter will create a database file. In subsequent scans, rkhunter will compare the current file in the system with this database file to detect the change.

rkhunter --propupd

Use rkhunter manually

To use manual scan rkhunter then you can type the command below. With this command, whenever the rkhunter finishes a part of the scan, you need to press “Enter” to continue.

rkhunter -c

To automatically ignore the “Enter” between scan sections, you can use -sk as the command below.

rkhunter -c -sk

And the result look like this.

how-to-install-rkhunter-on-centos-6-02 How to install rkhunter on CentOS 6
Rkhunter scan manually.

Use rkhunter automatically

At the time I wrote this article, I was using rkhunter version 1.4.6 and this version has automatically added scripts scanned daily for you.

The only thing you need to set up is to open the /etc/sysconfig/rkhunter file and edit your email address to the MAILTO line.

how-to-install-rkhunter-on-centos-6-03 How to install rkhunter on CentOS 6


With this article, hopefully you can successfully install rkhunter on your system. Using rkhunter can make your system more secure and you can also rest assured.

If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.

Share this post to your friends !
  • 1
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.