EMOS1.5 CLAMV升级到clamav-0.97.3

EMOS1.5 CLAMV 0.95 升级到clamav-0.97.3

 

停止相关clamd,amavisd,postfix服务
# service postfix stop
# /etc/init.d/clamd stop
# /etc/init.d/amavisd stop

 

建立 yum 升级源文件:/etc/yum.repos.d/dag.repo
vi /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag/
gpgcheck=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
enabled=1

 

开始升级

# yum update clamav

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]

 

升级过程中因为存在原有的配置文件

/etc/freshclam.conf

/etc/clamd.conf

所以 yum 升级后对应生成了

/etc/freshclam.conf.rpmnew

/etc/clamd.conf.rpmnew
两个配置文件

这里使用默认系统安装时的配置文件,所以这里不做任何修改

 

# rpm -qa|grep clamav
clamav-0.97.3-1.el5.rf
clamav-devel-0.97.3-1.el5.rf
clamav-db-0.95.2-4.el5.rf

 

最后,更新下病毒库

 

# freshclam --verbose

  

升级完成!

 

 

 

 

 

你可能感兴趣的:(OS)