clamconf
Display ClamAV configuration
SYNOPSIS
clamconf [--config-file=FILE] [--help] [--version]
PARAMETERS
--config-file=FILE or -f FILE
Load and dump configuration from the specified FILE instead of default locations.
--help
Display usage summary and exit.
--version
Print ClamAV version information and exit.
DESCRIPTION
clamconf is a utility from the ClamAV open-source antivirus toolkit for Linux and Unix-like systems. It parses configuration files used by ClamAV daemons and tools—such as clamd (daemon), freshclam (updater), and clamscan (scanner)—and outputs the effective settings in a human-readable format.
This includes resolving all Include directives, applying default values, and showing overrides from multiple files. The output displays active values, comments where preserved, and indicates sources (e.g., defaults or files). It's essential for troubleshooting misconfigurations, verifying database paths, log settings, or scan options without running the full tools.
By default, clamconf scans standard locations like /etc/clamav/ for clamd.conf, freshclam.conf, and clamscan.conf, producing sections for each. Use it before deployment to ensure settings like TCPSocket, MaxFileSize, or ExtraDatabase are correct. Non-interactive and lightweight, it aids sysadmins in maintaining antivirus integrity.
CAVEATS
Requires read access to configuration files (typically root or clamav user). Does not support all clamd.conf options if syntax errors present; output may be incomplete. Not for modifying configs—use text editors.
DEFAULT BEHAVIOR
Without options, scans and dumps clamd.conf, freshclam.conf, and clamscan.conf from standard paths like /etc/clamav/.
OUTPUT FORMAT
Sections per tool with directive = value lines; sources noted (e.g., 'DefaultDatabaseDirectory (default: /var/lib/clamav').
HISTORY
Introduced in ClamAV 0.95 (2014) to simplify debugging amid growing config complexity from includes and defaults. Evolved with ClamAV releases for better parsing and output formatting; current in 1.0+ series.


