---
title: "use yum to install clamav on centos"
author: "mathgl"
date: "2014-02-21T16:11:11Z"
tags: []
categories: ["操作系统"]
slug: "use-yum-to-install-clamav-on-centos"
draft: false
lastmod: "2014-02-21T16:12:49Z"
id: 2020279
url: "https://mathgl.iteye.com/blog/2020279"
---

well install anti-virus on linux is a stupid idea but sometimes we don't have choice.

 

1: update yum first

try:

rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/[rpmforge-release-0.5.3-1.el6.rf.x86\_64.rpm](http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm)

 

the blue part might be updated time to time. here I use CENTOS 6 64 bit.

 

2: yum update

 

3: yum install clamav-db clamav clamd

 

done..

 

how to start

 

/etc/init.d/clamd restart

 

how to update:

 

run freshclam