chun 2013-4-29 20:39
[轉貼]EMOS1.5 CLAMV升级到clamav.i386 0:0.97
<a href="http://www.extmail.org/forum/viewthread.php?tid=21279">http://www.extmail.org/forum/viewthread.php?tid=21279</a><div><br></div><div><table cellspacing="0" cellpadding="0" style="width: 600px; table-layout: fixed; margin-left: 1px; color: rgb(68, 68, 68); font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px;"><tbody><tr><td class="t_msgfont" id="postmessage_95141" style="color: rgb(68, 68, 68); line-height: 1.6em; font-family: Verdana, Helvetica, Arial, sans-serif;"><strong><span href="tag.php?name=EMOS" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">EMOS</span>1.5 CLAMV升级到clamav.i386 0:0.97</strong><br>停止相关clamd,amavisd,postfix<span href="tag.php?name=%E6%9C%8D%E5%8A%A1" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">服务</span><br>#<font color="Red">service postfix stop</font><br>#<font color="Red">/etc/init.d/clamd stop</font><br>#<font color="Red">/etc/init.d/amavisd stop</font><br><br><span href="tag.php?name=%E6%96%B0%E5%BB%BA" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">新建</span>文件:/etc/yum.repos.d/dag.repo<br><font color="Red">vi /etc/yum.repos.d/dag.repo</font><br>[dag]<br>name=Dag RPM Repository <span href="tag.php?name=for" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">for</span> Red Hat Enterprise <span href="tag.php?name=Linux" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">Linux</span><br>baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag/<br>gpgcheck=1<br>gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt<br>enabled=1<br><br>#<font color="Red">yum update clamav</font><br>Loaded plugins: fastestmirror<br>Loading mirror speeds from cached hostfile<br>* extras: mirrors.163.com<br>* updates: centos.ustc.edu.cn<br>* base: mirrors.163.com<br>* addons: mirrors.163.com<br>dag | 1.1 kB 00:00 <br>primary.xml.gz | 2.2 MB 00:14 <br>dag 10644/10644<br>extras | 2.1 kB 00:00 <br>updates | 951 B 00:00 <br>base | 2.1 kB 00:00 <br>addons | 951 B 00:00 <br>Setting up Update Process<br>Resolving Dep<span href="tag.php?name=end" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">end</span>encies<br>--> Running transaction check<br>---> Package clamav.i386 0:0.97-1.el5.rf set to be updated<br>--> Processing Dependency: clamav = 0.95.2-4.el5.rf for package: clamav-devel<br>--> Processing Dependency: clamav = 0.95.2-4.el5.rf for package: clamd<br>--> Running transaction check<br>---> Package clamd.i386 0:0.97-1.el5.rf set to be updated<br>---> Package clamav-devel.i386 0:0.97-1.el5.rf set to be updated<br>--> Finished Dependency Resolution<br><br>Dependencies Resolved<br><br>=============================================================================================================================<br>Package Arch Version Repository Size<br>=============================================================================================================================<br>Updating:<br>clamav i386 0.97-1.el5.rf dag 2.2 M<br>clamav-devel i386 0.97-1.el5.rf dag 7.8 k<br>clamd i386 0.97-1.el5.rf dag 237 k<br><br>Transaction Summary<br>=============================================================================================================================<br>Install 0 Package(s) <br>Update 3 Package(s) <br>Remove 0 Package(s) <br><br>Total download size: 2.4 M<br>Is this ok [y/N]: <font color="Red">y</font><br>Downloading Packages:<br>(1/3): clamav-devel-0.97-1.el5.rf.i386.rpm | 7.8 kB 00:00 <br>(2/3): clamd-0.97-1.el5.rf.i386.rpm | 237 kB 00:01 <br>(3/3): clamav-0.97-1.el5.rf.i386.rpm | 2.2 MB 00:13 <br>-----------------------------------------------------------------------------------------------------------------------------<br>Total 154 kB/s | 2.4 MB 00:16 <br>warning: rpmts_Hdr<span href="tag.php?name=From" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">From</span>Fdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6<br>Importing GPG key 0x6B8D79E6 "Dag Wieers (Dag Apt Repository v1.0) <<a href="mailto:dag@wieers.com" style="text-decoration: none; color: rgb(0, 153, 204);">dag@wieers.com</a>>" from <a href="http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt" target="_blank" style="text-decoration: none; color: rgb(0, 153, 204);">http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt</a><br>Is this ok [y/N]: y<br>Running rpm_check_de<span href="tag.php?name=bug" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">bug</span><br>Running Transaction Test<br>Finished Transaction Test<br>Transaction Test Succeeded<br>Running Transaction<br> Updating : clamav [1/6] <br>warning: /etc/<span href="tag.php?name=freshclam" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">freshclam</span>.conf created as /etc/freshclam.conf.rpmnew<br> Updating : clamd [2/6] <br>warning: /etc/clamd.conf created as /etc/clamd.conf.rpmnew<br> Updating : clamav-devel [3/6] <br> Cleanup : clamd [4/6] <br> Cleanup : clamav [5/6] <br> Cleanup : clamav-devel [6/6] <br><br>Updated: clamav.i386 0:0.97-1.el5.rf clamav-devel.i386 0:0.97-1.el5.rf clamd.i386 0:0.97-1.el5.rf<br><br>注意这里<span href="tag.php?name=%E7%9A%84" class="t_tag" style="cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap;">的</span>clamav.i386 0:0.97升级后的新配置文件/etc/freshclam.conf.rpmnew /etc/clamd.conf.rpmnew 位置<br><font color="Red">我们还是用的原来的EMOS缺省的配置,所以就不需要修改配置</font><br><br>#<font color="Red">freshclam</font><br>ClamAV update process started at Wed Mar 23 11:04:48 2011<br>main.cld is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven)<br>Downloading daily-12874.cdiff [100%]<br>Downloading daily-12875.cdiff [100%]<br>Downloading daily-12876.cdiff [100%]<br>Downloading daily-12877.cdiff [100%]<br>Downloading daily-12878.cdiff [100%]<br>Downloading daily-12879.cdiff [100%]<br>Downloading daily-12880.cdiff [100%]<br>Downloading daily-12881.cdiff [100%]<br>daily.cld updated (version: 12881, sigs: 76568, f-level: 60, builder: ccordes)<br>Downloading bytecode.cvd [100%]<br>bytecode.cvd updated (version: 142, sigs: 40, f-level: 60, builder: acab)<br>Database updated (922822 signatures) from db.local.clamav.net (IP: 203.178.137.175)<br>WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock<br>connect(): No such file or directory<br>#<font color="Red">freshclam --verbose</font><br>Current working dir is /var/clamav<br>Max retries == 3<br>ClamAV update process started at Wed Mar 23 11:05:50 2011<br>Using IPv6 aware code<br>Querying current.cvd.clamav.net<br>TTL: 838<br>Software version from DNS: 0.97<br>main.cvd version from DNS: 53<br>main.cld is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven)<br>daily.cvd version from DNS: 12881<br>daily.cld is up to date (version: 12881, sigs: 76568, f-level: 60, builder: ccordes)<br>bytecode.cvd version from DNS: 142<br>bytecode.cvd is up to date (version: 142, sigs: 40, f-level: 60, builder: acab)<br>#<font color="Red">/etc/init.d/amavisd start</font><br>Starting Mail Virus Scanner (amavisd): [ OK ]<br>#<font color="Red">/etc/init.d/clamd start</font><br>Starting Clam AntiVirus Daemon: [ OK ]<br>#<font color="Red">service postfix start</font><br>Starting postfix: [ OK ]<br><br><strong>这样就升级了CLAMV 到最新版本clamav.i386 0:0.97</strong></td></tr></tbody></table></div>