Skip to content

Instantly share code, notes, and snippets.

@smellman
Created January 28, 2025 12:34
Show Gist options
  • Save smellman/a3106800283c5f2e030bd21694a1b142 to your computer and use it in GitHub Desktop.
Save smellman/a3106800283c5f2e030bd21694a1b142 to your computer and use it in GitHub Desktop.
clamav install memo

setup

macOS

brew install clamav
cp /opt/homebrew/etc/clamav/freshclam.conf.sample /opt/homebrew/etc/clamav/freshclam.conf
vim /opt/homebrew/etc/clamav/freshclam.conf

comment out Example, then run freshclam.

freshclam

Linux

sudo apt install clamav
sudo apt install clamav-daemon
sudo systemctl start clamav-freshclam.service

Then, check systemctl status via sudo systemctl restart clamav-freshclam.service.

If you find error, restart clamav-freshclam.service.

sudo systemctl restart clamav-freshclam.service

full scan

macOS

clamscan ~/ --recursive --infected

Linux

sudo clamscan /home/your-account --recursive --infected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment