Automatic Greenbone/OpenVAS Feed Updates

After getting things up and running a few weeks back, the system has sat idle waiting for me to do something with. Low and behold, the feeds were well out of date. Apparently you have to manually create a cron entry to update the feeds. Follow the steps below to get it done. Snagged from

Update Openvas Feeds

To ensure openvas 9 is kept up to date and running the latest tests,  you need to sync the nvt, scap and cert data.  The best way to do this is to create a script that sync’s the necessary data.


Create a script under /usr/local/bin called update-openvas

vim /usr/local/bin/update-openvas

Add the following contents to the file

/usr/sbin/openvasmd –update –verbose –progress
/etc/init.d/openvas-manager restart
/etc/init.d/openvas-scanner restart


Save the file and make it executeable

chmod a+x /usr/local/bin/update-openvas


Run the script to make sure it works and that there are no errors



Add the script to cron to run daily

crontab -e


Add the following contents

1 1 * * * /usr/local/bin/update-openvas 1>/dev/null 2>/dev/null


The above cronjob will be run at 1 minute past 1 every day