Script to install rkhunter on CentOS 6

Share this post to your friends !

WriteBash - How to install rkhunter on CentOS 6? rkhunter is a small program for Unix / Linux has the ability to detect rootkits. This article will give you the script to install rkhunter on CentOS 6.

About the script

I wrote this script to simplify the installation of rkhunter on CentOS 6. Besides, this is also a fast archive source.

This script has 2 main parts:

  • Check if the current user is root. This script needs root user to install.
  • Install Rootkit Hunter, update database and system file properties.

Version installed:

  • OS: CentOS 6.9 (Final) 64 bit
  • Rootkit Hunter version 1.4.6

Use the script to install rkhunter on CentOS 6

Now, to use this script, you first need to download the script with the following command.

wget -O /home/

You then grant the executable permission to the script.

chmod 700 /home/

And finally, execute the script.

bash /home/
script-to-install-rkhunter-on-centos-6-01 Script to install rkhunter on CentOS 6
Execute the script use to install rkhunter on CentOS 6.

Check the result

After the script completes the installation (may take a few minutes). You can use the following command to perform manual scanning rootkits.

rkhunter -c
script-to-install-rkhunter-on-centos-6-02 Script to install rkhunter on CentOS 6
Script complete install rkhunter.

If your installation is finished as image above, then you have successfully installed this software on CentOS 6. In the next article, I will give you a script that will scan rootkits with rkhunter automatically.

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 !
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.

single post bottom banner
«« »»

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.