Skip to content

Instantly share code, notes, and snippets.

@AntoOnline
Last active July 14, 2023 09:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AntoOnline/83d0c1e419341aaf5e3652b2bb438457 to your computer and use it in GitHub Desktop.
Save AntoOnline/83d0c1e419341aaf5e3652b2bb438457 to your computer and use it in GitHub Desktop.
ClamAV Cheat Sheet

ClamAV Cheat Sheet

Install ClamAV on Ubuntu:

sudo apt-get install clamav clamav-daemon

When the installation is complete:

Stop the clamav-freshclam service:

systemctl stop clamav-freshclam

Run the freshclam command to update the signatures database:

freshclam

Start clamav service:

systemctl start clamav-freshclam

Some useful commands:

Check the version of clamav:

clamscan --version

Scan and remove infected files starting from root /.

sudo clamscan --infected --remove --recursive /

Remove clamav:

sudo apt-get remove clamav clamav-daemon

Update the sources and install the new clamav package:

sudo apt-get update 
sudo apt-get install clamav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment