Recently, I published a guide outlining how to install OpenVAS 8, from source, on Ubuntu 14. I got some feedback from some folks requesting a guide on installing OpenVAS on CentOS 7, from the binary packages available via yum. FYI, as of this writing, there are no binary packages for OpenVAS 8, hopefully they will come soon. OpenVAS is a top-knoch Open Source package for running vulnerability scans against networks and servers. Every network administration should have an OpenVAS installation tucked away on a virtual machine somewhere. It’s just so easy to monitor all of your systems for vulnerabilities, there’s no excuse not to. Installing OpenVAS from packages is much easier than installing from source. So, as requested, here you go.
How to install OpenVAS 7 on CentOS 7
Although time consuming, compared to installing from source, installing OpenVAS from binary package is a much less involved process. There are a few ‘gotchya’s” when installing to CentOS 7, mostly related to redis, which I’ll cover in this guide.
This guide assumes you have a minimal CentOS 7 server installation and you are logged into the console or via SSH.
First, we need to install a few prerequisites. To do that, run this command.
yum -y update yum install -y wget net-tools nano
The OpenVAS binary packages aren’t included with the stock repositories. So, we need to enable the Atomicorp repository.
wget -q -O - http://www.atomicorp.com/installers/atomic |sh yum -y upgrade
Now, we will install redis and OpenVAS 7.
yum -y install redis openvas