Page 1 of 3

Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 13:08:52
by Strato
Hello,

I'm trying to follow those instructions :
http://www.wains.be/index.php/2006/12/19/centosrhelfedora-web-proxy-antivirus-clamav/

...to install the antivirus plugin for DansGuardian. But something's not working as excepted and I don't understand why.

I downloaded the security team us repository as the instructions, and do "rpm -ivh securityblabla.rpm".

But then "yum install dansguardian-av" is not working. It seems yum don't recognize this package.

I'm new in linux world and these rpm/packages are very obscure to me, so there's probably something I'm not doing properly.

Thanks for any help.

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 13:25:26
by AlanBartlett
I guess you haven't used the [b]Search[/b] option, above.

This thread may help you - http://www.centos.org/modules/newbb/viewtopic.php?topic_id=13332&forum=41&post_id=44632#forumpost44632

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 13:59:30
by Strato
[quote]
AlanJBartlett wrote:
I guess you haven't used the [b]Search[/b] option, above.

This thread may help you - http://www.centos.org/modules/newbb/viewtopic.php?topic_id=13332&forum=41&post_id=44632#forumpost44632[/quote]
I did "yum search dansguardian" and it returns nothing, which is strange because Dansguardian is already installed (but from a .tar.gz file instead of a rpm).

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 14:46:22
by toracat
[quote]
Strato wrote:

I did "yum search dansguardian" and it returns nothing, which is strange because Dansguardian is already installed (but from a .tar.gz file instead of a rpm).[/quote]
rpm/yum has no knowledge on something you have installed from source. Please read up on this subject here:

http://wiki.centos.org/PackageManagement/SourceInstalls

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 15:23:06
by Strato
OK. So I followed your link, and uninstalled Dansguardian by doing "make uninstall", and then installed it again but this time from a proper RPM file, thanks to the RPMForge repo.

But I'm still stuck with Dansguardian-Antivirus (or av). It's not in the RPMForge repo or in the SecurityTeamUS repo I installed, and the only RPM file I found was for Red Hat it seems...

Any idea?

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 15:32:06
by Strato
Mmmmh... It seems the Dansguardian-Antivirus provided by SecurityTeamUs is for CentOS 4, that's why yum search does not display it.

Before doing any mistake : can I use this repository even if it was made for CentOS 4, and not 5? Or am I supposed to use a particular trick?

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 16:43:15
by Strato
I followed those instructions (in french) :
http://linuxtips.castres-wireless.org/article.php3?id_article=104
...in order to rebuild the Dansguardian-Antivirus RPM for CentOS 5. It "almost" works, but I have one last problem.

The Clamd daemon refuses to start.

I have an error message :
LibClamAV Error : cli_loaddbdir() "can't open directory /var/clamav".
ERROR : Unable to open file or directory.

I tried to "yum remove" and "yum install" again clamav, but it didn't change anything, and now I really don't know what to do... :-(

Also (and maybe it's connected) I was wondering how to uninstall the SecurityTeamUS repo now I'm done with it, and also because it seems ClamAV is taken from it instead of being taken from CentOS Extras...

Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 16:57:21
by gerald_clark
http://wiki.centos.org/Repositories

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/27 17:02:44
by AlanBartlett
[quote]then installed it again but this time from a proper RPM file, thanks to the RPMForge repo.

But I'm still stuck with Dansguardian-Antivirus (or av). It's not in the RPMForge repo or in the SecurityTeamUS repo I installed, and the only RPM file I found was for Red Hat it seems...[/quote]
The simplest and tidiest method would be for you to join the [i]RPMForge suggest[/i] mailing list - http://lists.rpmforge.net - and ask [b]Dag[/b] to provide the package in the [b]RPMForge repo[/b].

Re: Can't install DansGuardian Antivirus plugin

Posted: 2008/05/28 10:08:56
by Strato
I managed to recompile (I think that's the right term) Dansguardian-Antivirus for CentOS 4 myself, so it works for CentOS 5.

But now my problem is : I can't start clamd after installing it. It keeps telling me the directory /var/clamav/ doesn't exist even if it actually exists...