Difference between pages "Template:Article" and "Package:Clamav"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
m (finish up ebuild)
 
Line 1: Line 1:
<includeonly>{{#if:{{{Subtitle|}}}|<div style="margin-left: 15px;">
{{Ebuild
==={{{Subtitle|}}}===
|Summary=Clam Anti-Virus Scanner
</div>}}<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12 col-md-9">{{#if:{{{Summary|}}}|{{{Summary}}}
|CatPkg=app-antivirus/clamav
|Homepage=http://www.clamav.net/
}}
Clamav is an open source antivirus solution.
 
=== Installation ===
{{console|body=###i## emerge app-antivirus/clamav}}
 
Virus definitions need to be installed before starting the clamd service
{{console|body=###i## freshclam}}


=== Configuration ===
Configuration files are located at {{c|/etc/conf.d/clamd}}, {{c|/etc/clamd.conf}}, and {{c|/etc/freshclam.conf}}


}}{{#widget:AddThis}}
=== Runtime ===
{{#if:{{{Author|}}}|{{#set:Author=User:{{{Author|}}}}}}}{{#set:Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}|Subtitle={{{Subtitle|}}}|Summary={{{Summary|}}}|Icon={{{Icon|}}}|Next in Series={{{Next in Series|}}}|Previous in Series={{{Previous in Series|}}}}}{{#if:{{{Previous in Series|}}}|<br>''Previous in series: [[{{{Previous in Series}}}]]''}}{{#if:{{{Next in Series|}}}|'''<br>Next in series: [[{{{Next in Series}}}]]'''}}
{{console|body=###i## rc-update add clamd default
{{#seo:
###i## rc}}
|title={{PAGENAME}}{{#if:{{{Subtitle|}}}|: {{{Subtitle}}}}}
 
|keywords={{#if:{{{Author|}}}|{{#if: {{#show:User:{{{Author}}}|? Full name}}|{{#show:User:{{{Author}}}|?Full name}}  }} }},article,linux{{#if:{{{Keywords|}}}|,{{{Keywords}}}}}
==== Testing ====
|description={{{Summary|}}}
To make sure things are installed correctly, test this harmless 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)
}}
}}
{{Tip|[[Support Funtoo]] and help us grow! '''Donate $15 per month and get a free SSD-based [[Funtoo Hosting|Funtoo Virtual Container]].'''}}
 
</includeonly>
=== External Resources ===
http://www.clamav.net/doc/install.html
{{EbuildFooter}}

Revision as of 10:36, February 3, 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, test this harmless 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