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 Uninstall Clam Update?!

Discussion in 'General Discussion' started by Kamastep, Oct 3, 2004.

  1. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    How to uninstall Clam Update from http://cpanelappz.com/?!

    I Clam Update from http://cpanelappz.com/ and its a bit old with the version 0.75.1 and the current version is 0.83R3, so I like to uninstall the old one two update manually to the new version.
    Can anyone help?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    0.75.1 is the current stable update. The .80+ releases are release candidates (RC) and should only be used if you want to run beta software. So, the install on cpanelappz.com is not old.

    I'd suggest you download and read the ClamAV tarball, it's a very simple install indeed.
     
  3. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    No need to uninstall if upgrading to 0.80rc3 is the matter.
    Following applies if you already have 0.75.1 running and installed from clam-updater from http://cpanelappz.com.

    Applying following patches to the respective files

    (1). patch : modclam:

    --- modclam.orig 2004-07-27 15:21:13.000000000 +0530
    +++ modclam 2004-09-28 17:06:37.000000000 +0530
    @@ -1,7 +1,7 @@
    -perl -pi -e "s/^Example/#Example/g" /etc/clamav.conf
    -perl -pi -e "s/^#LogFile \/tmp\/clamd.log/LogFile \/var\/log\/clamd.log/g" /etc/clamav.conf
    -perl -pi -e "s/^#LogFileMaxSize 2M/LogFileMaxSize 2M/g" /etc/clamav.conf
    -perl -pi -e "s/^LocalSocket \/tmp\/clamd/LocalSocket \/var\/run\/clamav\/clamd/g" /etc/clamav.conf
    -perl -pi -e "s/^#MaxThreads 10/MaxThreads 10/g" /etc/clamav.conf
    -perl -pi -e "s/^#ScanMail/ScanMail/g" /etc/clamav.conf
    -perl -pi -e "s/^#FixStaleSocket/FixStaleSocket/g" /etc/clamav.conf
    +perl -pi -e "s/^Example/#Example/g" /etc/clamd.conf
    +perl -pi -e "s/^#LogFile \/tmp\/clamd.log/LogFile \/var\/log\/clamd.log/g" /etc/clamd.conf
    +perl -pi -e "s/^#LogFileMaxSize 2M/LogFileMaxSize 2M/g" /etc/clamd.conf
    +perl -pi -e "s/^LocalSocket \/tmp\/clamd/LocalSocket \/var\/run\/clamav\/clamd/g" /etc/clamd.conf
    +perl -pi -e "s/^#MaxThreads 10/MaxThreads 10/g" /etc/clamd.conf
    +perl -pi -e "s/^#ScanMail/ScanMail/g" /etc/clamd.conf
    +perl -pi -e "s/^#FixStaleSocket/FixStaleSocket/g" /etc/clamd.conf

    (2) patch claminstall:

    --- claminstall.orig 2004-07-30 20:54:23.000000000 +0530
    +++ claminstall 2004-10-04 00:17:26.000000000 +0530
    @@ -8,10 +8,9 @@
    else
    passwd -l clamav
    fi
    -
    -wget http://www.cpanelappz.com/clamav-0.75.1.tar.gz
    -tar xfzv clamav-0.75.1.tar.gz
    -(cd clamav-0.75.1;./configure --prefix=/usr --sysconfdir=/etc;make;make install)
    +wget http://aleron.dl.sourceforge.net/sourceforge/clamav/clamav-0.80rc3.tar.gz
    +tar xfzv clamav-0.80rc3.tar.gz
    +(cd clamav-0.80rc3;./configure --prefix=/usr --sysconfdir=/etc;make;make install)

    mkdir /var/run/clamav
    #Since we don't run clam as clamav user, just skip this next process for a while

    (3) patch install
    --- install.orig 2004-07-30 19:40:09.000000000 +0530
    +++ install 2004-10-04 00:19:25.000000000 +0530
    @@ -7,7 +7,7 @@
    ssystem("./claminstall");
    print "..Done\n";

    -print "Running patch on /etc/clamav.conf";
    +print "Running patch on /etc/clamd.conf";
    system("sh modclam >/dev/null");
    print "..Done\n";

    @@ -22,7 +22,7 @@


    #Just delete leftover files
    -system("rm -rf clamav-0.75.1/ clamav-0.75.1.tar.gz");
    +system("rm -rf clamav-0.80rc3/ clamav-0.80rc3.tar.gz");

    print "[*************************************************************]\n";
    print "[ INSTALL COMPLETE ]\n";


    After having applied the patch:

    ./install

    Note: the config file is now /etc/clamd.conf as compared to /etc/clamav.conf earlier.

    Best Luck
    Anup

    PS: As chirpy mentions, run this if you feel comfortable running it for reasons already detailed by him. However, this upgrade could perhaps be taking care of this:

    http://easynews.com/virus.html -- Virus - "GDIplus.dll" exploit or something
     
    #3 anup123, Oct 3, 2004
    Last edited: Oct 3, 2004
  4. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I already install both. All I need is how to remove the ClamAV 0.83RC3?! I decided to keep ClamAV updater from cpanelappz (if is more stable).
     
  5. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Both means 0.75.1 and also 0.80rc3? :confused:
    If everything is running fine then i presume that 0.75.1 is the one that you installed last.
    I don't think you can have both there if using the same installer (and patched installer).

    If you are talking about clamavconnector in WHM then sorry i have no experience of using that. But i guess, you have an option of Uninstall in WHM Add On modules... ie if you have installed clamav both from http://cpanelappz.com and WHM ClamAvconnector...

    And while on stability issue, running 0.80rc3 from the date of release w/o any problems so far.
    What does clamscan -V show?

    Anup
     
  6. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Yes I have 0.7.51 installed from cpanelappz and 0.83RC3 installed two days ago with normal procedure instalation.

    Running version command clamscan installed is ClamAV 0.80rc3/511/Fri Oct 1 20:45:09 2004 but I have the version 0.7.51 that I install a long time ago. (Don't use any addon of WHM).
    What you recommend me to use, and how two uninstall the other?
     
  7. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    So you are on version 0.80rc3
    You an't have both running.
    In ase you want to go back to 0.75.1 then i believe using the installer from http://cpanelappz.com (without modifications) would just put your version bcak to what it is supposed to.

    Anup
     
  8. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Can you tell me please how to uninstall the two to I make a decision and then choose what unistall?
     
  9. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    I am still confused as to why you would want to unistall *both* as you say, when you have only the version working which is shown to you.

    Is your Exim down?

    Anup
     
  10. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
  11. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I'm sorry to the confusion. I don't want to uninstall both. I just want to know how to unistall ClamAV from cpanelappz and Clam 0.83Rc3, so if me or my partners decide to uninstall cpanelappz I know how, if they decide to delete Clam 0.83 I know how to do it.

    Thank you for you patience, maybe is my english that's terrible.
     
  12. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Kamastep, as anup pointed out to you, you don't have both versions running, infact you can't (if you use the install script from www.cpanelappz.com). So don't worry about running 2 versions.

    If you want to still remove clam (and still think you are running 2 versions), remove the lines you added to exim.conf through WHM and remove the files using rm

    rm -rf /usr/share/clamav /usr/share/clamav/main.cvd /usr/share/clamav/daily.cvd /usr/sbin/
    clamd /usr/bin/clamscan /usr/bin/clamdscan /usr/bin/freshclam /usr/include/clamav.h /usr/l
    ib/libclamav.so.1.0.4 /usr/lib/libclamav.so.1 /usr/lib/libclamav.so /usr/lib/libclamav.la
    /usr/lib/libclamav.a /usr/local/bin/freshclam /usr/local/clamav /usr/local/clamav/mail /us
    r/man/man1/clamscan.1 /usr/man/man1/freshclam.1 /usr/man/man1/clamdscan.1 /usr/man/man5/cl
    amav.conf.5 /usr/man/man5/freshclam.conf.5 /usr/man/man8/clamd.8 /usr/man/man8/clamav-milt
    er.8 /var/run/clamav/* /usr/local/bin/clam* /etc/clam* /etc/freshclam*

    You now won't have clam on your box.
     
  13. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I know that I'm not running the two versions, simply don't want files of cpanelappz clam installer in my server if is not working.

    Just want to remove what I don't need in my server like the untar of cpanelappz, installation files and other stuff if I use the last version of Clam.

    Thank you for your patience and you suggestions, for all.
     
  14. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Please understand that you have only version of clamAV running.
    In case you do not want to use it for Mail Scanning (as that's what it does wrt installer from http://cpanelappz.com) then just edit your Exim.conf in WHM and comment out all that you placed in different sections as per instructions on http://cpanelappz.com ... ie just comment them out, and Save.

    You would no longer be using clamAV ...
    The installation files are:


    /etc/clamd.conf
    /usr/man/man5/clamd.conf.5
    /etc/clamav.conf
    /usr/bin/clamscan
    /usr/local/bin/clamscan
    /usr/man/man1/clamscan.1
    /usr/bin/clamav-config
    /usr/bin/clamdscan
    /usr/bin/clamscan
    /etc/freshclam.conf
    /usr/man/man5/freshclam.conf.5
    /etc/cron.daily/freshclam

    plus few others ....

    Since u have only one version, please do not get confused that you have two installations running. The last installation that you did just has overwritten what you had before that.

    I am a bit scary to run rm -f commands although that would do what you want but i would still not suggest that unless one is very sure of what he is doing.

    Anup
     
  15. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Hey Anand.

    Remeber, uninstaller (or rm -Rf'er) was the First in list of Wishlist ... at your Thread ... see someone needing it already.

    :D
    Anup
     
  16. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider

    I know anup, i still have work which i need to give preference before i hit on the installer. Actually there is a lot being planned and lot in development. At present most of our concentration is being done on Cpanel API which will help developers develop scripts for cpanel and be able to use WHM functions in their scripts very easily.
     
  17. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Yes anup123 I know that is only a version running. Please understand that when you untar a .tar file (the clam from cpanelappz) is created a directory with all files for installation. When I say that I want to uninstall the clam from cpanelappz, I want to know if there is a uninstall file that if run will remove the directories used from this application.

    If such file doesn't exist, and you say that the files were overwritten by the new version installed (0.83), then what I need to do is delete the directory with all files for installation, am I correct?

    (My main preocupation is not uninstall the old or new one, but the stability and not making trash with decreaped directories in my server)

    Thank you anup123 for you support, indeed. The same with the others, once again.
     
  18. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    When you download the script from cpanelappz.com and untar it, there is a single directory created called "exiscan". If you were refering to this directory, you can just remove the directory after installation is completed.

    If you want to remove clam and its associated files, then i posted in another thread the complete files list which you can remove, along with it don't forget to remove the exim.conf lines and your clam is disabled.

    At present there is no uninstall script for the clam install from cpanelappz.com, there could be one in future perhaps.
     
  19. Kamastep

    Kamastep Member

    Joined:
    Sep 2, 2004
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    That is what I want to heard! Thank you.
     
  20. AlexAT

    AlexAT Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ukraine
    cPanel Access Level:
    Root Administrator
    How 2 remove clamAV at all?
    I remove all possible entries and seems it still loaded:
    "
    # service exim restart
    Shutting down clamd: [ OK ]
    Shutting down exim: [ OK ]
    Shutting down antirelayd: [ OK ]
    Shutting down spamd: [ OK ]
    Starting clamd: [ OK ]
    Starting exim: [ OK ]
    Starting exim-outgoing: [ OK ]
    Starting exim-smtps: [ OK ]
    Starting antirelayd: [ OK ]
    Starting spamd: [ OK ]
    ".
     
Loading...

Share This Page