$ brew install clamav
    $ cd / usr / local / etc / clamav  $ cp freshclam.conf.sample freshclam.conf
    

    打开freshclam.conf并注释“Example”行:

    # Comment or remove the line below.
    # Example
    

    复制配置文件:

    cp clamd.conf.sample clamd.conf
    

    打开clamd.conf并注释“Example”行:

    # Comment or remove the line below.
    # Example
    

    更新数据库:

    freshclam
    

    对所有文件运行扫描:

    $ clamscan -r --bell -i /
    

    扫描所有用户的主目录就使用

    clamscan -r /home