文書更新:2018年05月31日(木) 午後3時37分12秒

Home > 備忘録(Fedora) > アプリケーション > Clam AntiVirus( 105 )

Clam AntiVirusのインストール

  1. パッケージのインストール
  2. [root@server]# yum -y install clamav clamav-update

  3. freshclam.confの編集
  4. [root@server]# vi /etc/freshclam.conf
    ##
    ## Example config file for freshclam
    ## Please read the freshclam.conf(5) manual before editing this file.
    ##
    
    
    # Comment or remove the line below.
    #Example	←コメントアウトにする
    
    # Path to the database directory.
    # WARNING: It must match clamd.conf\'s directive!
    # Default: hardcoded (depends on installation options)
    #DatabaseDirectory /var/lib/clamav
    
    # Path to the log file (make sure it has proper permissions)
    # Default: disabled
    #UpdateLogFile /var/log/freshclam.log
    	~~~~~途中省略~~~~~
    # Uncomment the following line and replace XY with your country
    # code. See http://www.iana.org/cctld/cctld-whois.htm for the full list.
    # You can use db.XY.ipv6.clamav.net for IPv6 connections.
    DatabaseMirror db.jp.clamav.net	←db.XY.clamav.netをdb.jp.clamav.netに変更
    
    # database.clamav.net is a round-robin record which points to our most

  5. 定義ファイル更新
  6. [root@server]# freshclam
    ClamAV update process started at Thu Jun  7 17:45:26 2012
    Downloading daily.cvd [100%]
    daily.cvd updated (version: 15014, sigs: 209481, f-level: 63, builder: guitar)
    bytecode.cvd is up to date (version: 185, sigs: 39, f-level: 63, builder: neo)
    Database updated (1253907 signatures) from database.clamav.net (IP: 219.94.128.99)

  7. ウィルススキャン
  8. [root@server]# clamscan --infected --remove --recursive /home
    
    ----------- SCAN SUMMARY -----------
    Known viruses: 1248587
    Engine version: 0.97.3
    Scanned directories: 2509
    Scanned files: 3874
    Infected files: 0
    Data scanned: 292.48 MB
    Data read: 245.82 MB (ratio 1.19:1)
    Time: 207.098 sec (3 m 27 s)

  9. freshclamの自動更新
  10. [root@server]# vi /etc/cron.d/clamav-update
    ## Adjust this line...
    MAILTO=root
    
    ## It is ok to execute it as root; freshclam drops privileges and becomes
    ## user \'clamav\' as soon as possible
    0  */3 * * * root /usr/share/clamav/freshclam-sleep

GUI ソフト ClamTk をインストール

  1. GUI ソフトをインストール
  2. [root@server]# yum -y install clamtk
  3. ClamTkが上手く動作しないときの対処