Wednesday, 14 June 2017

Working with ClamaAV on Fedora 25, Redhat 7 and CentOS 7


Greetings,


I'll show you how to install and scan your system using ClamAV.


ClamAV installation is pretty simple.


In Fedora 25, Redhat 7, CentOS 7


# dnf install clamav clamav-update
Before we proceed any furture we would need to check or edit freshclam (to update virus definition)
# vim /etc/freshclam.conf
Please comment "Example" (You will see it at the start)

Then uncomment following lines
DNSDatabaseInfo current.cvd.clamav.net
DatabaseMirror db.XY.clamav.net (change XY to your country for example: gb, us, de, in, ch etc)
DatabaseMirror database.clamav.net
Once that’s done, we will update virus definition
# freshclam
Now, time to scan the system
# clamscan [option] [file/directory]


# clamscan -r /home (r = recursive)


# clamscan -ivr /home (i = infected, v = verbose)


# clamscan --bell –ivr /home (--bell = It will sound bell if it discovers virus)


# clamscan --remove=yes –ivr /home (remove=yes = it means it will remove virus upon detection)


# clamscan -ivr --phishing-sigs=yes --heuristic-scan-precedence=yes /home (it can perform phishing and heuristic scan)
 If you think that’s complicated then install GUI version called ClamTK
 # dnf install clamtk
Please read more about clamscan
# man clamscan
# clamscan --help

1 comment: