<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>install clamav &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/install-clamav/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Mon, 08 Sep 2014 01:42:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Install/Compile ClamAV In CentOS 6</title>
		<link>https://lifelinux.com/how-to-installcompile-clamav-in-centos-6/</link>
					<comments>https://lifelinux.com/how-to-installcompile-clamav-in-centos-6/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 08 Sep 2014 01:26:33 +0000</pubDate>
				<category><![CDATA[Anti Virus]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[compile clamav]]></category>
		<category><![CDATA[install clamav]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1930</guid>

					<description><![CDATA[<p>Clam AntiVirus (ClamAV) is a free and open-source, cross-platform antivirus software tool-kit able to detect many types of malicious software, including viruses. It&#8217;s easy to use and best for Linux based Web &#038; Mail server. In this article, I will show you through the step by step installation of ClamAV on CentOS 6.x from source. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-installcompile-clamav-in-centos-6/">How To Install/Compile ClamAV In CentOS 6</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>Clam AntiVirus (ClamAV) is a free and open-source, cross-platform antivirus software tool-kit able to detect many types of malicious software, including viruses. It&#8217;s easy to use and best for Linux based Web &#038; Mail server. In this article, I will show you through the step by step installation of ClamAV on CentOS 6.x from source.<br />
<span id="more-1930"></span><br />
The first, You need to download ClamAV latest version at http://www.clamav.net. Login as root and type the following command</p>
<pre>
# wget http://downloads.sourceforge.net/project/clamav/clamav/0.98.4/clamav-0.98.4.tar.gz?r=http%3A%2F%2Fwww.clamav.net%2Fdownload.html&ts=1410062157&use_mirror=softlayer-sng -O clamav-0.98.4.tar.gz
</pre>
<p>The second, extracting clamav-0.98.4.tar.gz package</p>
<pre>
# tar zxvf clamav-0.98.4.tar.gz
# cd clamav-0.98.4
</pre>
<h2>Installing ClamAV</h2>
<p>Type the following command to Compile ClamAV from source</p>
<pre>
# ./configure --prefix=/usr/local --sysconfdir=/etc --with-xml=/usr/local --with-zlib=/usr
# make
# make install
</pre>
<h2>Configuring ClamAV</h2>
<p>Creating user for clamav, enter</p>
<pre>
useradd -s /sbin/nologin -d /dev/null clamav
</pre>
<p>Creating database folder of clamav, enter</p>
<pre>
# mkdir /usr/local/share/clamav
# chown clamav /usr/local/share/clamav
# chmod 700 /usr/local/share/clamav
</pre>
<p>Type these following commands to create ClamAV configuration files</p>
<pre>
mv /etc/freshclam.conf.sample /etc/freshclam.conf
mv /etc/clamd.conf.sample /etc/clamd.conf
</pre>
<p>Open and remove contains</p>
<pre>
# Comment or remove the line below.
Example
</pre>
<h2>Updating ClamAV</h2>
<pre>
# freshclam
</pre>
<h2>Configuring daily scan</h2>
<p>In this example, I will configure a cronjob to scan the /home/ directory every day. Creating a file called name scanav at /opt/, enter</p>
<pre>
# vi /opt/scanav
</pre>
<p>Add the following to the file above</p>
<pre>
#!/bin/bash

SCAN_DIR="/home"
SCAN_LOG="/var/log/clamav.log"

# Update CLAMAV
freshclam

# Scan AV
clamscan -i -r $SCAN_DIR >> $SCAN_LOG
</pre>
<p>Give our cron script executable permissions, enter</p>
<pre>
# chmod +x /opt/scanav
</pre>
<p>Configuring daily scan with crontab, type the following command</p>
<pre>
# crontab -e
</pre>
<p>Add the following</p>
<pre>
01 01 * * * /opt/scanav
</pre>
<g:plusone href="https://lifelinux.com/how-to-installcompile-clamav-in-centos-6/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-installcompile-clamav-in-centos-6/">How To Install/Compile ClamAV In CentOS 6</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-installcompile-clamav-in-centos-6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
