Chinaunix首页 | 论坛 | 博客
  • 博客访问: 555385
  • 博文数量: 114
  • 博客积分: 5611
  • 博客等级: 大校
  • 技术积分: 1027
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-19 08:55
文章分类

全部博文(114)

文章存档

2011年(29)

2010年(20)

2009年(1)

2008年(11)

2007年(53)

分类: LINUX

2011-03-23 11:34:55

停止相关clamd,amavisd,postfix服务

#service postfix stop
#/etc/init.d/clamd stop
#/etc/init.d/amavisd stop

新建文件:/etc/yum.repos.d/dag.repo
vi /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=
gpgcheck=1
gpgkey=
enabled=1

#yum update clamav

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * extras: mirrors.163.com

 * updates: centos.ustc.edu.cn

 * base: mirrors.163.com

 * addons: mirrors.163.com

dag                                                                                                   | 1.1 kB     00:00    

primary.xml.gz                                                                                        | 2.2 MB     00:14    

dag                                                            10644/10644

extras                                                                                                | 2.1 kB     00:00    

updates                                                                                               |  951 B     00:00    

base                                                                                                  | 2.1 kB     00:00    

addons                                                                                                |  951 B     00:00    

Setting up Update Process

Resolving Dependencies

--> Running transaction check

---> Package clamav.i386 0:0.97-1.el5.rf set to be updated

--> Processing Dependency: clamav = 0.95.2-4.el5.rf for package: clamav-devel

--> Processing Dependency: clamav = 0.95.2-4.el5.rf for package: clamd

--> Running transaction check

---> Package clamd.i386 0:0.97-1.el5.rf set to be updated

---> Package clamav-devel.i386 0:0.97-1.el5.rf set to be updated

--> Finished Dependency Resolution

 

Dependencies Resolved

 

=============================================================================================================================

 Package                          Arch                     Version                             Repository               Size

=============================================================================================================================

Updating:

 clamav                           i386                     0.97-1.el5.rf                       dag                     2.2 M

 clamav-devel                     i386                     0.97-1.el5.rf                       dag                     7.8 k

 clamd                            i386                     0.97-1.el5.rf                       dag                     237 k

 

Transaction Summary

=============================================================================================================================

Install      0 Package(s)        

Update       3 Package(s)        

Remove       0 Package(s)        

 

Total download size: 2.4 M

Is this ok [y/N]: y

Downloading Packages:

(1/3): clamav-devel-0.97-1.el5.rf.i386.rpm                                                            | 7.8 kB     00:00    

(2/3): clamd-0.97-1.el5.rf.i386.rpm                                                                   | 237 kB     00:01    

(3/3): clamav-0.97-1.el5.rf.i386.rpm                                                                  | 2.2 MB     00:13    

-----------------------------------------------------------------------------------------------------------------------------

Total                                                                                        154 kB/s | 2.4 MB     00:16    

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6

Importing GPG key 0x6B8D79E6 "Dag Wieers (Dag Apt Repository v1.0) " from

Is this ok [y/N]: y

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Updating       : clamav                                            [1/6]

warning: /etc/freshclam.conf created as /etc/freshclam.conf.rpmnew

  Updating       : clamd                                             [2/6]

warning: /etc/clamd.conf created as /etc/clamd.conf.rpmnew

  Updating       : clamav-devel                                      [3/6]

  Cleanup        : clamd                                             [4/6]

  Cleanup        : clamav                                            [5/6]

  Cleanup        : clamav-devel                                      [6/6]

 

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

 

注意这里的clamav.i386 0:0.97升级后的新配置文件/etc/freshclam.conf.rpmnew   /etc/clamd.conf.rpmnew  位置

我们还是用的原来的EMOS缺省的配置,所以就不需要修改配置

 

#freshclam

ClamAV update process started at Wed Mar 23 11:04:48 2011

main.cld is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven)

Downloading daily-12874.cdiff [100%]

Downloading daily-12875.cdiff [100%]

Downloading daily-12876.cdiff [100%]

Downloading daily-12877.cdiff [100%]

Downloading daily-12878.cdiff [100%]

Downloading daily-12879.cdiff [100%]

Downloading daily-12880.cdiff [100%]

Downloading daily-12881.cdiff [100%]

daily.cld updated (version: 12881, sigs: 76568, f-level: 60, builder: ccordes)

Downloading bytecode.cvd [100%]

bytecode.cvd updated (version: 142, sigs: 40, f-level: 60, builder: acab)

Database updated (922822 signatures) from db.local.clamav.net (IP: 203.178.137.175)

WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock

connect(): No such file or directory

#freshclam --verbose

Current working dir is /var/clamav

Max retries == 3

ClamAV update process started at Wed Mar 23 11:05:50 2011

Using IPv6 aware code

Querying current.cvd.clamav.net

TTL: 838

Software version from DNS: 0.97

main.cvd version from DNS: 53

main.cld is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven)

daily.cvd version from DNS: 12881

daily.cld is up to date (version: 12881, sigs: 76568, f-level: 60, builder: ccordes)

bytecode.cvd version from DNS: 142

bytecode.cvd is up to date (version: 142, sigs: 40, f-level: 60, builder: acab)

#/etc/init.d/amavisd start

Starting Mail Virus Scanner (amavisd): [  OK  ]

#/etc/init.d/clamd start

Starting Clam AntiVirus Daemon: [  OK  ]

#service postfix start

Starting postfix: [  OK  ]

 

 

这样就升级了CLAMV 到最新版本clamav.i386 0:0.97
阅读(2930) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~