注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Package:Clamav"
Jump to navigation
Jump to search
Threesixes (talk | contribs) m |
Gatorchomps (talk | contribs) m (Added EICAR link) |
||
(One intermediate revision by one other user not shown) | |||
Line 19: | Line 19: | ||
###i## rc}} | ###i## rc}} | ||
==== Testing ==== | |||
To make sure things are installed correctly, users have the option to run against the the [http://www.eicar.org/86-0-Intended-use.html EICAR Standard Anti-Virus Test File]: | |||
{{console|body=###i## wget -O- http://www.eicar.org/download/eicar.com.txt | clamscan - | |||
###i##rm eicar.com.txt}} | |||
{{ | ==== Usage ==== | ||
To scan single files: | |||
{{console|body=###i## clamscan /usr/bin/portageq}} | |||
To scan a directory: | |||
{{console|body=###i## clamscan -ir /var/www/localhost/htdocs/ | |||
----------- SCAN SUMMARY ----------- | |||
Known viruses: 3736482 | |||
Engine version: 0.98.6 | |||
Scanned directories: 663 | |||
Scanned files: 6067 | |||
Infected files: 0 | |||
Total errors: 8 | |||
Data scanned: 58.61 MB | |||
Data read: 36.59 MB (ratio 1.60:1) | |||
Time: 42.691 sec (0 m 42 s) | |||
}} | |||
=== External Resources === | |||
http://www.clamav.net/doc/install.html | |||
{{EbuildFooter}} | {{EbuildFooter}} |
Latest revision as of 16:07, March 22, 2015
Clamav
Tip
We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.
Clamav is an open source antivirus solution.
Installation
root # emerge app-antivirus/clamav
Virus definitions need to be installed before starting the clamd service
root # freshclam
Configuration
Configuration files are located at /etc/conf.d/clamd
, /etc/clamd.conf
, and /etc/freshclam.conf
Runtime
root # rc-update add clamd default root # rc
Testing
To make sure things are installed correctly, users have the option to run against the the EICAR Standard Anti-Virus Test File:
root # wget -O- http://www.eicar.org/download/eicar.com.txt
Usage
To scan single files:
root # clamscan /usr/bin/portageq
To scan a directory:
root # clamscan -ir /var/www/localhost/htdocs/ ----------- SCAN SUMMARY ----------- Known viruses: 3736482 Engine version: 0.98.6 Scanned directories: 663 Scanned files: 6067 Infected files: 0 Total errors: 8 Data scanned: 58.61 MB Data read: 36.59 MB (ratio 1.60:1) Time: 42.691 sec (0 m 42 s)
External Resources
http://www.clamav.net/doc/install.html