Jack Atkinson

Science, Archery, Computing

Jack Atkinson's Website

Jack Atkinson

Science, Archery, Computing

Clamav setup on arch

5 minutes
April 3, 2026
computing,  arch,  software, 

Slightly more verbose setup than the Arch wiki…

I just set up clamav on my machine again. I’m starting to appreciate the arch wiki not being overly verbose as I get more used to reading it - e.g. the assumption that you know how to start/restart a daemon. However, it is a challenge at first and can lead to some confusion.

Here is a more complete rundown of the some of the steps I took.


The basis for this post is the clamav page on the Arch Wiki which should be taken as a starting point.

Note that this is correct at time of writing on 2026/04/03. I will aim to update this with future changes and note as such.

Basic Setup

Whitelisting false-positives

Once this was set up I had issues with a lot of errors popping up every time I visited a new webpage. Looking at the clamd log we see:

Fri Apr  3 14:55:31 2026 -> /home/user/.librewolf/73q3g0y1.default-release/
extensions/uBlock0@raymondhill.net.xpi: Sanesecurity.Foxhole
.JS_Zip_1.UNOFFICIAL FOUND

which is an advert and tracking blocker browser extension. This is a common issue with tracking blockers which contain signatures for things to block that might also be recognised by clamav.

We can whitelist this file by adding a false-positives file to the clamav database as false-positives.fp. See clamav whitelist docs for more details.

We place the name of the file in here, but also match the md5 signature so that any future modifications to the file won’t pass by default and will need re-whitelisting.

This can be done with:

sudo bash -c "sigtool --md5 /home/user/file/to/whitelist >> /var/lib/clamav/false-positives.fp"

Aside: desktop notifications

notify-send will raise an error like:

Failed to show notification: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

if no desktop notification app is installed. Some environments (e.g. KDE, GNOME) will come with one, but lighter-weight approaches (e.g. Sway) will not.

Various options exist to raise desktop notifications. I chose mako as something simple that works for me on Sway.

Simply installing (via sudo) with:

pacman -S mako

is enough to set up so that notifications now appear in the top right of the screen. Test this with:

usr/bin/notify-send -u critical -t 5000 "Hello World!"

where -u specified urgency level and -t is time before the notification disappears in ms. More options including icons, app name, etc. can be seen via man notify-send.