How to install chkrootkit on CentOS 7

chkrootkit is a tool that’s used to determine if a Unix server has been compromised.

You can’t do yum install chkrootkit on CentOS so follow the instructions below instead:

yum update
yum install wget gcc-c++ glibc-static
wget -c
md5sum -c chkrootkit.md5
chkrootkit.tar.gz: OK

tar –xzf chkrootkit.tar.gz
mkdir /usr/local/chkrootkit
mv chkrootkit-0.52/* /usr/local/chkrootkit
cd /usr/local/chkrootkit
make sense

To do a scan:


To enable automatic scanning:

You can add a cron entry for running chkrootkit automatically and send a scan report to your mail address. Create and add the following entries to “/etc/cron.daily/”

 ) | /bin/mail -s 'CHROOTKIT Daily Run (ServerName)' [email protected]


Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top