How can I enable .rar support for ClamAV?

RHEL / Centos

Unfortunately the EPEL package maintainers will not compile .rar support for ClamAV due to license restrictions. We recommend blocking .rar attachments using postfix to work around the problem: e.g.: https://www.cyberciti.biz/tips/postfix-block-mime-attachment-files.html

Debian / Ubuntu

The Debian / Ubuntu package maintainers have provided a separate package that enables .rar support for ClamAV. Before installing you must enable the non-free repositories for your OS: e.g. https://serverfault.com/questions/240920/how-do-i-enable-non-free-packages-on-debian

After enabling the non-free repositories run the command:

sudo apt-get install libclamunrar7

Restart the ClamAV daemon:

sudo service clamav-daemon restart
  • rar, winrar
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Why isn't autolearning working for me (autolearn=no) ?

Lots of people seem to be confused by the "autolearn=no" statement in the default X-Spam-Status...

I get the a 502 gateway error when clicking on the application. How can I fix this?

This can usually be fixed by just restarting the Plesk interface:/etc/init.d/psa restart

How can I fix the error WARNING: Ignoring deprecated option AllowSupplementaryGroups after upgrading to ClamAV 1.00?

The AllowSupplementaryGroups option was deprecated in ClamAV 1.00. If this option is present in...

How can I fix the error: spamass-milter[27944]: Could not extract score from <> ?

When you look at your email log you see: spamass-milter[27944]: Could not extract score from...

How can I stop encrypted archives from being allowed though ClamAV?

For ClamAV 0.100 and belowUnder Warden -> Settings -> Scanning Settings -> Block...