[clamav-users] Error message "outdated version" although "yum list installed" reports correct version of clamav

Dennis Peterson dennispe at inetnw.com
Thu Feb 20 04:02:27 UTC 2014


On 2/19/14, 7:32:12PM, Dennis Peterson wrote:

>
> #> yum list installed "clam*"
> clamav.x86_64                    0.98.1-1.el6      installed
> clamav-db.x86_64                 0.98.1-1.el6      installed
> clamav-devel.x86_64              0.98.1-1.el6      installed
> clamav-unofficial-sigs.noarch    3.7.1-6.el6       installed
> clamd.x86_64                     0.98.1-1.el6      installed
>
> Software version: 0.98.1
> Package version: 0.98.1-1.el6
>
> For the previous version of ClamAV it looked like this:
> Software version: 0.98
> Package version: 0.98-2.el6 <-- Version 2 of the package as I found an
> error in the "UserName" in the script. I use smmsp where the default
> user is often clamav or just clam, depending on the distro. That
> requires I rebuild the package.
>
> dp

Pardon my quick repost - I forgot to include this:

yum info installed "clam*" will show you the software version as well as 
additional nice-to-know stuff from the package maintainer. It is also 
worth the education to go to the SRPM distribution and look at the files 
it contains.

The Fedora project for example, has the full ClamAV source in a source 
RPM, here:
http://dl.fedoraproject.org/pub/epel/6Server/SRPMS/clamav-0.98.1-1.el6.src.rpm

You will need some RPM tools to pry it open, but here is how it is done:

[root at packager ~]# su - rpm_builder

[rpm_builder at packager ~]$ mkdir clam_src

[rpm_builder at packager ~]$ cd clam_src; wget 
http://dl.fedoraproject.org/pub/epel/6Server/SRPMS/clamav-0.98.1-1.el6.src.rpm

[rpm_builder at packager clam_src]$ rpm2cpio clamav-0.98.1-1.el6.src.rpm 
|cpio -idv

Mind the wordwrap above. You su to a safe user, rpm_builder, for 
example, create a directory, cd into it and wget the source RPM. You 
then use rpm2cpio to burst the RPM into a stream of the constituent 
parts which are in turn piped to cpio which creates files from that 
stream. Among those files is the very interesting clamav.spec file. This 
is a text file that reveals how the package was built. It is well worth 
reading and understanding.

You will need to install the RPM package manager suite:

This will give you the package id for that suite.

[root at packager ~]# yum provides */rpm2cpio

Apologies if you know all this - others don't so it is worth sharing for 
the larger audience.

dp



More information about the clamav-users mailing list