Koozali.org: home of the SME Server

How do I reinstall clamav?

Offline Joeg1484

  • **
  • 35
  • +0/-0
How do I reinstall clamav?
« on: April 10, 2010, 05:11:50 AM »
Hey all,

I recently noticed a ton of errors being emailed to me about freshclam failing to update and as I read "Possible" fixes for this issue and removed the mirrors.dat file as was outlined in said fix, I am now left with out the .dat file as the fix was wrong and didn't regenerate the mirrors.dat file as it said it would.

So, now I just want to remove it and reinstall fresh, but when I try to yum remove clamav, it, for some reason, wants to uninstall the whole system instead of the application I want to uninstall.

Is there a way to remove and reinstall clamav?

Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: How do I reinstall clamav?
« Reply #1 on: April 10, 2010, 07:42:34 AM »
Is there a way to remove and reinstall clamav?

There is, but it's not going to help you. Unless the clamav files are corrupted, which is extermely unlikely, then removing and then re-installing them will not change anything.

If you have a problem, then please report it via the bug tracker.

Offline holck

  • *
  • 322
  • +1/-0
Re: How do I reinstall clamav?
« Reply #2 on: April 10, 2010, 04:13:41 PM »
In a terminal, as super user (su) you can try:
Code: [Select]
# rpm -e --nodeps clamd clamav clamav-db smeserver-clamav
# yum install smeserver-clamav
The first line will uninstall the packages related to clamav, ignoring all possible dependencies.
The second line will reinstall smeserver-clamav, dragging in the other packages as dependencies.
......

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How do I reinstall clamav?
« Reply #3 on: April 10, 2010, 04:40:47 PM »
In a terminal, as super user (su) you can try:
Code: [Select]
# rpm -e --nodeps clamd clamav clamav-db smeserver-clamav
# yum install smeserver-clamav
The first line will uninstall the packages related to clamav, ignoring all possible dependencies.
The second line will reinstall smeserver-clamav, dragging in the other packages as dependencies.

removing smeserver-clamav is not necessary (and possibly dangerous)

in any case OP should not remove/reinstall Clamav ti solve his problem..

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How do I reinstall clamav?
« Reply #4 on: April 10, 2010, 06:09:27 PM »
Joeg1484

Well you did not post the errors so how do you really expect us to accurately answer you.

freshclam update errors are not a serious issue.
Usually it just means the update servers are temporarily down, or busy, or some such similar lack of access or availability issue eg too many people trying to access them.
Ignore the errors initially and see if freshclam update is successful tomorrow.

If the errors keep recurring day after day, then you possibly have a problem that should be reported to the bug tracker.

To manually do an update, at the command prompt just type
freshclam
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Joeg1484

  • **
  • 35
  • +0/-0
Re: How do I reinstall clamav?
« Reply #5 on: April 10, 2010, 11:23:06 PM »
Joeg1484

Well you did not post the errors so how do you really expect us to accurately answer you.

freshclam update errors are not a serious issue.
Usually it just means the update servers are temporarily down, or busy, or some such similar lack of access or availability issue eg too many people trying to access them.
Ignore the errors initially and see if freshclam update is successful tomorrow.

If the errors keep recurring day after day, then you possibly have a problem that should be reported to the bug tracker.

To manually do an update, at the command prompt just type
freshclam

Well, may not be a problem, but I am getting this:

Code: [Select]
[root@wolfserver ~]#freshclam
ClamAV update process started at Sat Apr 10 14:17:51 2010
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.95.3 Recommended version: 0.96
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cld is up to date (version: 52, sigs: 704727, f-level: 44, builder: sven)
daily.cld is up to date (version: 10725, sigs: 50658, f-level: 51, builder: mcichosz)

I was getting a DNS error and a bunch of other errors until I removed the mirrors.dat file. When I run freshclam, it doesn't rebuild the mirrors file, but appears to have updated the cld files; although, the binary looks like its not updating. Is this a problem?

Thanks for the replies, however, I don't see why posting my specific issue should go to a BUG list when it may not be a bug. I would rather not "BUG" developers when its a user issue, to be honest :). That is what these community forums are for ;).

Joe

Offline Joeg1484

  • **
  • 35
  • +0/-0
Re: How do I reinstall clamav?
« Reply #6 on: April 10, 2010, 11:24:38 PM »
Well, paint me a liar. I looked in /var/clamav and now see a mirrors.dat file, so it must have just taken some time to rebuild... Who would have known!

Thanks!

Joe

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: How do I reinstall clamav?
« Reply #7 on: April 11, 2010, 02:37:22 AM »
Joeg1484

If someone recommends you post a bug, then please take the advice, those suggestions are not made without reason.
I clearly said if the problem persists for more than a few days then it is most likely a bug.

Your recent error also said "DON'T PANIC! Read http://www.clamav.net/support/faq"

Did you bother to read that ?

It just indicates that upstream sources have released an update which has not yet filtered down to sme server, which IIRC uses a specially built version, so we need to wait a few days or more for the developers to release it (ie when they get around to it).

Again the second error is nothing to worry about and can be safely ignored.

Re your first error and subsequent rebuilding of the file. The original download probably stopped or the connection to the update server was broken or busy, thus creating a corrupted download file. On the next viable update, the file was correctly downloaded and updated.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.