- Install clamav and clamav-daemon. Clamav daemon is for automated use.
ubuntu14:~$ sudo apt-get install clamav clamav-daemon -y
- Update the clamav pattern file:
ubuntu14:~$ sudo freshclam
- Start clamav-daemon (clamd):
ubuntu14:~$ sudo /etc/init.d/clamav-daemon start
* Starting ClamAV daemon clamd [ OK ] - Check clamd status:
ubuntu14:~$ sudo /etc/init.d/clamav-daemon status
* clamd is running - Start and check the status of clamav-freshclam:
ubuntu14:~$ sudo /etc/init.d/clamav-freshclam start
* Starting ClamAV virus database updater freshclam [ OK ]ubuntu14:~$ sudo /etc/init.d/clamav-freshclam status
* freshclam is running - Verify ClamAV version number:
ubuntu14:~$ sudo clamdscan -VClamAV 0.98.7/20523/Fri May 29 12:36:20 2015
Your article is helpful to anyone who wants to install ClamAV on an Ubuntu server.
I have CentOS and DirectAdmin installed on my server so installing ClamAV is somewhat different. Luckily, I found this blog post:
https://www.rosehosting.com/blog/install-clamav-on-a-centos-6-vps-with-directadmin/ and completed the installation.