Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to upgrade my clamav installation to the latest version (0.95.2). I am running CentOS 5.3, and I have rpmforge added.

The command I am using is

yum upgrade clam*

I'm getting this error message:

Resolving Dependencies
--> Running transaction check
--> Processing Dependency: clamav = 0.95.1-4.el5.rf for package: clamd
---> Package clamav.x86_64 0:0.95.2-4.el5.rf set to be updated
---> Package clamav-db.x86_64 0:0.95.2-4.el5.rf set to be updated
--> Finished Dependency Resolution
clamd-0.95.1-4.el5.rf.x86_64 from installed has depsolving problems
  --> Missing Dependency: clamav = 0.95.1-4.el5.rf is needed by package clamd-0.95.1-4.el5.rf.x86_64 (installed)
Error: Missing Dependency: clamav = 0.95.1-4.el5.rf is needed by package clamd-0.95.1-4.el5.rf.x86_64 (installed)

So it's complaining that 0.95.1-4.el5.rf is missing, but as far as I can tell it's not:

# rpm -qa | grep clam

Any tips at this point would be appreciated.

share|improve this question
up vote 2 down vote accepted

I have the same set up as you and the same problem. What yum is saying is that there is a new clamav and clamdb, but if it goes ahead with the upgrade it will break clamd (currently installed) which depends on the old clamav. The solutions is to hold off on the upgrade until a new clamd (which will be dependent on the new clamav) is released. Try again tomorrow.

share|improve this answer
I'm accepting this answer because, although everyone had great suggestion, I think this answer really nailed the cause of the problem. I think yum's error message was extreamly confusing so I'd like to thank Hector for demystifying what was happening. Needless to say that today the new clamd package was made available and upgrading works just fine. – Oz Solomon Jun 19 '09 at 15:09

If you don't need clamd running you can do 'rpm -e clamd', then your clamav upgrade should go fine.

If you need clamd, check to see if there is an updated clamd rpm. You could also uninstall clamd, run the upgrade, and try to reinstall it. It is possible there is an updated clamd but maybe it is not in the repository.

Since the versions look like they all mix, not sure why it is erroring but rpm is weird like that sometimes.

share|improve this answer

Try clearing your local yum data.

I think it's :

yum clear all

man yum to be sure.

Another thing to check is the arch of the "missing" dependency. Make sure it is the same as the pckage you are trying to install/update:


rpm -q --queryformat "%{name}.%{version}-%{release}.%{arch}\\n" clamav

share|improve this answer

The new clamd is available for update today, so you will be able to upgrade successfully now using the same command as before.

share|improve this answer

Try to install and then reinstall

share|improve this answer

Another approach would be to manually copy the clamd rpm to the box and just do a force install ignoring dependencies:

rpm -iv --nodeps --force clamd-0.95.1-4.el5.rf.x86_64.rpm

share|improve this answer

CentOS has released an updated clamd that resolves this dependency issue. Try your update again and It Should Work(tm).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.