LinuxCommandLibrary

freshclam

ClamAV virus database updater

TLDR

Update virus definitions

$ freshclam
copy
Check for updates only
$ freshclam --check
copy
Run in daemon mode
$ freshclam -d
copy
Verbose output
$ freshclam -v
copy
Use specific config
$ freshclam --config-file=[/path/freshclam.conf]
copy

SYNOPSIS

freshclam [options]

DESCRIPTION

freshclam downloads and updates ClamAV virus signature databases. It connects to ClamAV mirrors to fetch the latest malware definitions for the clamscan and clamd scanners.
The tool can run as a daemon for automatic updates or be triggered manually. Multiple mirrors provide redundancy. Downloaded databases are verified before installation.
freshclam is essential for keeping ClamAV effective against new threats.

PARAMETERS

-d, --daemon

Run as background daemon.
-c N, --checks N
Daily checks when running as daemon.
-v, --verbose
Verbose output.
--check
Check for updates without downloading.
--config-file FILE
Configuration file path.
-l FILE, --log FILE
Log file path.
--help
Display help information.

CONFIGURATION

/etc/clamav/freshclam.conf

Main configuration file controlling database mirrors, update frequency, proxy settings, and notification options.

CAVEATS

Requires network access to mirrors. Download frequency limits apply. Large database downloads on first run.

HISTORY

freshclam is part of ClamAV, the open source antivirus engine. ClamAV was created in 2001 and acquired by Sourcefire (later Cisco), providing free virus scanning for Unix systems.

SEE ALSO

clamscan(1), clamd(8), clamdscan(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community