The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to Update to ClamAV -0.81

Discussion in 'cPanel Developers' started by Lestat, Feb 3, 2005.

  1. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    This might be a little backwards but works great for me.

    Instructions

    1: wget -O clam-updater.tar.gz http://www.cpanelappz.com/download.php?file=3
    2: tar zxvf clam-updater.tar.gz
    3: cd clam-updater
    4: ./install
    How to test

    On shell as root type this (note the CAPITAL V):
    clamscan -V

    As of date the present release is 0.75.1, so if thats what the above shows you, you are in business ;-)

    Now your thinking why am I going backwards on the versions here. Well just made things easier for updating clamav on a fresh install of Cpanel. I tried to install the ClamAV-0.81 without going backwards and still showed the .80 version.

    (This is in case your zlib is out of date when you try the ./configure option on clamav)

    1: wget http://www.zlib.net/zlib-1.2.2.tar.gz
    2: tar zxvf zlib-1.2.2.tar.gz
    3: cd zlib-1.2.2
    4: make clean
    5: ./configure -s
    6: make
    7: make install

    Next step on updating to ClamAV-0.81:

    1: wget http://voxel.dl.sourceforge.net/sourceforge/clamav/clamav-0.81.tar.gz
    2: tar zxvf clamav-0.81.tar.gz
    3: cd clamav-0.81
    4: ./configure
    5: make
    6: make check
    7: make install
    8: make clean
    9: clamscan -V

    If I have all wrong please reply. But looks as if it has worked for me just fine.
     
    #1 Lestat, Feb 3, 2005
    Last edited: Feb 3, 2005
  2. KLEVO

    KLEVO Member

    Joined:
    Nov 15, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ukraine,Zaporozhia
    All in your method is right.
    Thx for idea :)
     
  3. Stonemage

    Stonemage Well-Known Member

    Joined:
    Sep 24, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Fremont, CA
    Didn't work for me at all... it installed .75 but even after i do a 'make install' for .81, cmalscan -V tells me Im still at .75.

    Any ideas?
    :(
     
  4. aldalil

    aldalil Member

    Joined:
    Aug 7, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    root@name [~]# tar zxvf clamav-0.81.tar.gz

    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error exit delayed from previous errors


    !!!
    :confused:

    not able to extract the files !
    is there any one have an idea ?
     
  5. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    actually, you didn't upgrade the clamav, you just installed the new version in a different location.



    do a
    ps ax | grep clam

    you shoud see a line with /usr/sbin/clamd

    (that is the old version)

    clam 0.81 is installing in /usr/local/sbin/clam

    exim is still using the old clam.

    i was however able to make exim work with the new clamav, i'll try to post a step by step tutorial soon.
     
  6. eazistore

    eazistore Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Singapore
    works great!
    I follow the instructions and got it running as:
    ClamAV 0.81/685/Wed Jan 26 17:08:24 2005

    Cheers!
     
  7. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    You should also install GMP (currently v4.1.4) before installing ClamAV. This allows ClamAV to verify the digital signatures of the virus updates.

    http://www.swox.com/gmp/
     
  8. Stonemage

    Stonemage Well-Known Member

    Joined:
    Sep 24, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Fremont, CA
    This damn thing isnt working still... so is there a way to either fix it or remove it?
     
  9. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    Have a new write up on that jester.ro? I see what your saying...
     
  10. Lestat

    Lestat Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    199
    Likes Received:
    0
    Trophy Points:
    16
    Nevermind found a better update for it. This seemed to work just fine.

    http://forums.cpanel.net/showthread.php?t=35114&highlight=clamav

    Grab the source for clamav 0.82: http://voxel.dl.sourceforge.net/sourceforge/clamav/clamav-0.82.tar.gz
    Make sure you have the GMP library and its headers... quoted from the ClamAV FAQ:

    The ClamAV package requires the GMP library to verify the digital signature of the virus database. When building ClamAV you need the GMP library and its headers: if you are using Debian just run apt-get install libgmp3-dev, if you are using an RPM based distribution install the gmp-devel package. You'll need to rerun ./configure and recompile ClamAV.


    Code:
    
    cd /usr/local/cpanel/modules-install/clamavconnector-Linux-i686
    wget http://internap.dl.sourceforge.net/sourceforge/clamav/clamav-0.83.tar.gz
    sed -i -e 's/AVV=0.82/AVV=0.83/' install
    ./install
    
    The 'sed' command may not work if you have an old version of sed, ie. 3.02. If thats the case, just edit the install file with your fav editor and change AVV=0.80 to AVV=0.83. Save it, exit, and run "./install"

    Verify that 0.83 has been installed by running the following:

    Code:
    
    /usr/bin/freshclam -V
    /usr/bin/clamscan -V
    /usr/sbin/clamd -V
    
    They should all report "ClamAV 0.83/700/Thu Feb 3 15:33:15 2005", run /usr/bin/freshclam to update.
     
    #10 Lestat, Feb 9, 2005
    Last edited: Feb 16, 2005
Loading...

Share This Page