• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Updating clamav version to 0.97.7

Scheduled Pinned Locked Moved
General
2
2
1.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    Fernando Gietz Developer
    last edited by Apr 12, 2013, 2:26 PM

    Clamav has a new version, 0.97.7; then, is probably that our version is obsolete. I will explain how to update it.
    You must use the different files that are in the clamav0.97.7.zip file. It contains next files:
    [LIST]
    []clamav-config
    [
    ]clambc
    []clamconf
    [
    ]clamdscan
    []clamscan
    [
    ]fog.av
    []freshclam
    [
    ]libclamav.so.6.1.16
    [/LIST]
    ==> [B]Updating our server:[/B]

    You can see some information in this [URL=‘http://www.fogproject.org/wiki/index.php/Clamav’]link[/URL][B] [1][/B]
    [LIST]
    [*]Updating clamav version:
    [/LIST]
    For RHEL 6:
    [CODE]$ sudo yum install clamav[/CODE]
    For Ubuntu:
    [CODE]$apt-get install clamav-freshclam[/CODE]

    [LIST]
    []Deleting the old definitions files in the server:
    [/LIST]
    [CODE]$ sudo rm /var/lib/clamav/
    .*[/CODE]

    [LIST]
    []Update your definitions by running freshclam
    [/LIST]
    [CODE]$sudo freshclam[/CODE]
    [LIST]
    [
    ]Disable scripted updates and let ClamAV download definitions to the root of the web server. Add “ScriptedUpdates off” to the freshclam.conf file on the Fog Server.
    [/LIST]
    ==> [B]Updating init.gz[/B]

    [LIST]
    [*]Expand the Fog init.gz file:
    [/LIST]
    [CODE]
    $sudo cd /tftpboot/fog/images
    $sudo gunzip init.gz
    $sudo mkdir initmountdir
    $sudo mount -o loop init initmountdir
    [/CODE]

    [LIST]
    [*]Extract clamav0.97.7.zip files (you have copied it in your server home folder) and copy them:
    [/LIST]
    [CODE]$cd
    $sudo unzip clamav0.97.7.zip
    $sudo cp clamav-config /tftpboot/fog/images/initmount/usr/bin
    $sudo cp clambc /tftpboot/fog/images/initmount/usr/bin
    $sudo cp clamconf /tftpboot/fog/images/initmount/usr/bin
    $sudo cp clamdscan /tftpboot/fog/images/initmount/usr/bin
    $sudo cp clamscan /tftpboot/fog/images/initmount/usr/bin
    $sudo cp freshclam /tftpboot/fog/images/initmount/usr/bin
    $sudo cp libclamav.so.6.1.16 /tftpboot/fog/images/initmount/usr/lib
    $sudo cp fog.av /tftpboot/fog/images/initmount/bin
    [/CODE]

    [LIST]
    [*]Create the soft links:
    [/LIST]
    [CODE]$cd /tftpboot/fog/images/initmount/usr/lib
    $ln -s libclamav.so.6.1.16 libclamav.so
    $ln -s libclamav.so.6.1.16 libclamav.so.6
    $chmod 755 libclamav.so.6.1.16[/CODE]

    [LIST]
    []Modify the freshclam.conf file inside the init. Add “DatabaseMirror MyFogServerNameOrIP” and “ScriptedUpdates off” to this file.
    [/LIST]
    [LIST]
    [
    ]Change the ram disk size. The old size is 50 MB, is small, then we will increase it to 100 MB:
    [/LIST]
    [CODE]$sudo vi /tftpboot/fog/images/initmount/bin/fog.av[/CODE]
    We edit the next line:
    [CODE]mount -t tmpfs none /usr/share/clamav/ -o size=50m;[/CODE]
    And change the ram disk size to 100m:
    [CODE]mount -t tmpfs none /usr/share/clamav/ -o size=100m;[/CODE]
    Save the change

    [LIST]
    [*]Compress the init file:
    [/LIST]
    [CODE]$cd /tftpboot/fog/images
    $sudo umount initmountdir/
    $sudo rmdir initmountdir
    $sudo gzip init[/CODE]

    [LIST]
    [*]DONE the update!!!
    [/LIST]

    [1] [url]http://www.fogproject.org/wiki/index.php/Clamav[/CODE][/url]

    [url=“/_imported_xf_attachments/0/296_clamav0.97.7.zip?:”]clamav0.97.7.zip[/url]

    1 Reply Last reply Reply Quote 0
    • D
      Dean211
      last edited by Apr 15, 2013, 7:59 AM

      @[URL=‘http://fogproject.org/forum/members/fernando-gietz.13/’][B][U]Fernando Gietz[/U][/B][/URL] well done thank u.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post

      202

      Online

      12.1k

      Users

      17.3k

      Topics

      155.4k

      Posts
      Copyright © 2012-2024 FOG Project