← 返回命令列表

Linux command

freshclam 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Update virus definitions

freshclam

Check for updates

freshclam --check

Run in daemon

freshclam -d

Verbose output

freshclam -v

Use specific config

freshclam --config-file=[/path/freshclam.conf]

说明

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.

参数

-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.
-F, --foreground
When combined with -d, stay in the foreground instead of detaching.
-u _USER_, --user _USER_
When started as root, drop privileges to the given user.
--datadir _PATH_
Override the database directory (default `/var/lib/clamav`).
--stdout
Write all log output to stdout.
--show-progress
Show a progress bar during downloads.
--quiet
Only print error messages.
--no-warnings
Suppress warning messages.
--update-db _NAME_
Only update the named database (`main`, `daily`, `bytecode`).
--on-update-execute _CMD_
Run _CMD_ after a successful update.
--on-error-execute _CMD_
Run _CMD_ when an update fails.
-V, --version
Print version information and exit.
--help
Display help information.

FAQ

What is the freshclam command used for?

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.

How do I run a basic freshclam example?

Run `freshclam` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --daemon do in freshclam?

Run as background daemon.