Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use ClamAV 0.97.8/17494 on CentOS 6.4. It's good but can't find viruses in rar files. It can detect same virus file as it is or in a zip file but in rar file ClamAV reports no virus.

ScanArchive=yes option is already enabled

I searched a lot on google but couldn't find a solution.

Does anyone know if there is a fix for this?

EDIT 1

Package unrar-4.2.3-1.el6.rf.i686 already installed and latest version

EDIT 2

ClamAV was installed using yum install clamav clamd

#ldd $(which clamscan)
linux-gate.so.1 =>  (0x008fb000)
libclamav.so.6 => /usr/lib/libclamav.so.6 (0x0051a000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00ddc000)
libc.so.6 => /lib/libc.so.6 (0x002d3000)
libz.so.1 => /lib/libz.so.1 (0x00490000)
libbz2.so.1 => /lib/libbz2.so.1 (0x00dc3000)
libm.so.6 => /lib/libm.so.6 (0x004a6000)
libdl.so.2 => /lib/libdl.so.2 (0x00489000)
/lib/ld-linux.so.2 (0x002ad000)
share|improve this question
    
Was this installed from RPM or built from source? Can you ldd $(which clamscan) and check for missing libraries? (Show up in bold.) –  Aaron Copley Jul 12 '13 at 19:35
    
@AaronCopley I edited my question –  Ergec Jul 13 '13 at 4:37
add comment

3 Answers

Do you have unrar installed? It isn't part of the standard Centos Repos. Installation instructions are available online.

share|improve this answer
    
yes it's installed –  Ergec Jul 12 '13 at 17:53
    
add comment

Most distributions exclude rar 3.0 support from ClamAV packages as the ClamAv authors had no legal right to include it. If you want rar support in ClamAV then you need to build it from the unmodified source which can be downloaded from the ClamAV website.

share|improve this answer
add comment

Had this problem. Upgraded to 0.97.7, no problem with it now, it can find the virus in the RAR files.

share|improve this answer
add comment

Your Answer

 
discard

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.