Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: users

clamav update from tar.gz

 

 

ClamAV users RSS feed   Index | Next | Previous | View Threaded


infelectromed.mtz at infomed

Aug 27, 2012, 5:17 AM

Post #1 of 6 (1072 views)
Permalink
clamav update from tar.gz

Hi people:

I have install clamav 0.96.5 from my ubuntu 10.04 repository but I
want to upgrade to 0.97.5, I download the tar.gz file to my /home/user
folder and do this:

1. Unpack the file
2. Cd to clamav directory
3. Run ./configure
4. Run make

Now I want to uninstall the old clamav but I no idea of what packs, I
have install: clamav, clamav-base, clamav-daemon, clamav-freshclam,
libclamav6 and libtommath. I would keep one or more of this packs for
eg libclamav6, to install the new version o I have to uninstall all of
them???? I tried everything, then I run:

make install

But I never got a valid instalation, when I tried to invoke clamd I
got an error related with libclamav or something like that, anybody
have a tuto or manual that help me with this issues??? Thanks . . .

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



--

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


bburke at eecs

Aug 27, 2012, 8:56 AM

Post #2 of 6 (1051 views)
Permalink
Re: clamav update from tar.gz [In reply to]

> Now I want to uninstall the old clamav but I no idea of what packs,
> I have install: clamav, clamav-base, clamav-daemon,
> clamav-freshclam, libclamav6 and libtommath. I would keep one or
> more of this packs for eg libclamav6, to install the new version o I
> have to uninstall all of them?

You should probably remove all of them. If you aren't sure which ones are installed, try
running:

$ dpkg -l | grep -i clamav

> But I never got a valid instalation, when I tried to invoke clamd I
> got an error related with libclamav or something like that

Once you remove all the Ubuntu-provided packages, you should look at the output of

$ ldd /path/to/clamd # Perhaps /usr/local/sbin/clamd

To see which libclamav the binary is linked to. My guess is that there isn't any kind of
tutorial for from repo-clamav to manual-clamav. Hope that helps.

--
Bryan Burke
IT Administrator
Department of Electrical Engineering and Computer Science
University of Tennessee, Knoxville
bburke [at] eecs
(865) 974-4694
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


ged at jubileegroup

Aug 28, 2012, 3:51 AM

Post #3 of 6 (1045 views)
Permalink
Re: clamav update from tar.gz [In reply to]

Hi there,

On Tue, 28 Aug 2012, infelectromed.mtz@... wrote:

> I have install clamav 0.96.5 from my ubuntu 10.04 repository but I
> want to upgrade to 0.97.5, I download the tar.gz file to my /home/user
> folder and do this:
>
> 1. Unpack the file
> 2. Cd to clamav directory
> 3. Run ./configure
> 4. Run make

Good so far.

> Now I want to uninstall the old clamav but I no idea of what packs, I
> have install: clamav, clamav-base, clamav-daemon, clamav-freshclam,
> libclamav6 and libtommath. I would keep one or more of this packs for
> eg libclamav6, to install the new version o I have to uninstall all of
> them????

All of them. I don't use Ubuntu, but I believe that Ubuntu uses the
same packaging system as Debian, and for a Debian system I would use
for each package:

apt-get remove package
apt-get purge package

> make install
>
> But I never got a valid instalation, when I tried to invoke clamd

Please describe any messages that you saw when you did 'make install'
and how you tried to invoke clamd. I suspect that you inadvertently
tried to use some of the old software, possibly startup scripts in
/etc/init.d or something like that.

> I got an error related with libclamav or something like that,

"or something like that" is not adequate. Please give the exact
commands which you used and the exact error messages. You can use the
'script' command before you run anything else (such as compilations
and installations), A record of everything that is written to the
screen, including everything that you type, will be saved in a file so
that you can review it later. Type 'exit' to quit the shell which is
saving the session so that you can view the record. You can then copy
and paste interesting parts of the record to a mailing list. :)

> anybody have a tuto or manual that help me with this issues???

You could look in /var/cache/apt/archives for the .deb files which
contain the packages that you mentioned. You can use the command

dpkg --info packagefile.deb

to get useful information about them and

dpkg-deb --contents packagefile.deb

to get a list of the files, most of which you can probably just delete.
Rather than deleting them it might be safe to move them somewhere where
the system won't find them and make them unreadable with chmod a-rwx. :)

It is unrealistic to expect people to produce manuals or tutorials for
every permutation of users' whim. You need to learn about the systems,
learn about the packages, learn about their installation, learn about
their operation and learn about how they must be maintained. Yes, it's
learn, learn, learn, learn, learn. Sorry. At least you have learned
now how much work the package maintainers are doing for you. :)

--

73,
Ged.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


dennispe at inetnw

Aug 28, 2012, 9:55 AM

Post #4 of 6 (1040 views)
Permalink
Re: clamav update from tar.gz [In reply to]

On 8/28/12 3:51 AM, G.W. Haywood wrote:

> It is unrealistic to expect people to produce manuals or tutorials for
> every permutation of users' whim. You need to learn about the systems,
> learn about the packages, learn about their installation, learn about
> their operation and learn about how they must be maintained. Yes, it's
> learn, learn, learn, learn, learn. Sorry. At least you have learned
> now how much work the package maintainers are doing for you. :)
>
> --
>
> 73,
> Ged.

If the OP did exactly as he said the system would have installed Clamav in
/usr/local. While it is possible I suppose that his RPM distro does the same,
I've not seen it an any I've installed. If true the consequence is clamd
installed fine but is no longer in his path.

Running make -n install 2>&1 |less will reveal all.

dp

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


n22e113 at yahoo

Aug 28, 2012, 8:14 PM

Post #5 of 6 (1037 views)
Permalink
Re: clamav update from tar.gz [In reply to]

On 8/27/2012 08:17, infelectromed.mtz [at] infomed wrote:
> I have install clamav 0.96.5 from my ubuntu 10.04 repository but I want to upgrade to 0.97.5
>
Your problem is not unique as I had the same problem for months with Debian Lenny. Attempts to upgrade from Lenny to Squeeze (with a test machine) ended in disaster. ;( Anyway, with Debian Lenny, I didn't have to uninstall any Debian packages and if I did I would loose the files in /etc/init.d/clamav-*. The key for me is to figure out where to put all the clamav-0.97.x.tar.gz files so that Debian Lenny can find them. Luckily, Debian Lenny is fairly "Linux Standard Base" complaint: http://en.wikipedia.org/wiki/Linux_Standard_Base As an example, in Debian Lenny, clamd.conf is in /etc/clamav/; but the tar.gz with ./configure would place the said file in /usr/src/.... With that in mind, here is how I did it (and copied from my earlier post, quote):

To solve the problem (as root) My bad! I know!

1. Make sure you have zlib-devl, gcc and make (I use gcc-4.3):
# aptitude -y install zlib1g-dev gcc-4.3 make

2. Download the latest (July 2012) stable source:
# cd /usr/src && wget http://sourceforge.net/projects/clamav/files/clamav/0.97.5/clamav-0.97.5.tar.gz

3. Decompress:
# cd /usr/src && tar xvzf clamav-0.97.5.tar.gz

4. Complie with make
# cd /usr/src/clamav-0.97.5 && ./configure –sysconfdir=/etc/clamav –exec_prefix=/usr && make && make install

5. Once complete:
# /etc/init.d/clamav-daemon restart

Please note: the key to a successful install in Debian is in No. 4 above by telling ./configure with the correct sys-config-directory and exec_prefix. Good luck please report back if the above procedure works with ubuntu 10.04?
That’s it! Cheers!
Kwon


_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


ged at jubileegroup

Aug 29, 2012, 6:07 AM

Post #6 of 6 (1041 views)
Permalink
Re: clamav update from tar.gz [In reply to]

Hi there,

On Wed, 29 Aug 2012, n22e113 wrote:

> On 8/27/2012 08:17, infelectromed.mtz [at] infomed wrote:
>> I have install clamav 0.96.5 from my ubuntu 10.04 repository but I want to upgrade to 0.97.5
>>
> Your problem is not unique as I had the same problem for months with
> Debian Lenny. Attempts to upgrade from Lenny to Squeeze (with a test
> machine) ended in disaster.

This isn't the place to discuss your upgrade disaster, but I'm curious
to know what you call a disaster. I've upgraded a few Debian machines
from Lenny to Squeeze, with no disasters. You must have been doing
something a little strange. Lenny is no longer supported by security
updates, and running ClamAV on it seems a bit like polishing your car
instead of changing the oil, and fitting new tyres.

> Anyway, with Debian Lenny, I didn't have to uninstall any Debian
> packages and if I did I would loose the files in /etc/init.d/clamav-*.

That is expected. Probably even required. :)

> The key for me is to figure out where to put all the
> clamav-0.97.x.tar.gz files so that Debian Lenny can find them.

The system does not refer to the sources after the package is built.
Debian Lenny does not need to 'find them', nor does any other system,
and after you have built and installed the package you can delete both
the source tarball and the entire package build tree.

> Luckily, Debian Lenny is fairly "Linux Standard Base" complaint:

Compliant. Sorry. :)

> [...] As an example, in Debian Lenny, clamd.conf is in /etc/clamav/;
> but the tar.gz with ./configure would place the said file in
> /usr/src/ [...]

No, it is *you* who are placing the files there. You can place the
source files wherever you wish although I strongly recommend that you
do not put them in /usr/src but instead put them in a subdirectory of
your home directory. I have good reasons for that recommendation...

> [...] To solve the problem (as root) My bad! I know!

... unnecessary privileges being one of them ...

> 2. Download the latest (July 2012) stable source:
> # cd /usr/src && wget http://sourceforge.net/projects/clamav/files/clamav/0.97.5/clamav-0.97.5.tar.gz

... cluttering up system areas with junk being another.

> 3. Decompress:
> # cd /usr/src && tar xvzf clamav-0.97.5.tar.gz

Unnecessary 'cd' commands.

> 4. Compile with make
> # cd /usr/src/clamav-0.97.5 && ./configure ?sysconfdir=/etc/clamav ?exec_prefix=/usr && make && make install

Strange ? characters in strange places. Much better to use your home
directory, to build packages as a non-privileged user. Don't use /usr
as exec_prefix unless you really want to overwrite things that might
already be there. Give the commands separately and inspect the output
at each stage to make sure it's what you want/expect. Make sure that
before you build you have suitable system user accounts for ClamAV to
use if it is to runs as a daemon or give arguments to the 'configure'
script so that system accounts are not required. It's in the docs.

$ cd # Change to your home directory
$ mkdir build # Create a directory to build things in
$ cd build # Move into that directtory
$ wget .../clamav-x.xx.x.tar.gz # Fetch the source tarball
$ tar xzf clamav-x.xx.x.tar.gz # Unpack it
$ cd clamav-x.xx.x # Go to the top of the ClamAV source tree
$ less -S README # Chill with some documentation. ;)
$ less -S INSTALL # More documentation ;)
$ cd docs [...] cd .. # More documentation ;)
$ ./configure --help | less -S # More documentation ;)
$ ./configure (options) # Configure the source tree for your system
$ make # Compile the sources to produce binaries etc.
$ make check # IF you've read the documentation AND
$ su # IF you're happy with the output AND
# make install # IF you need to install (as root)
# exit # Done
$

> 5. Once complete:
> # /etc/init.d/clamav-daemon restart

Your instruction to start a daemon begs questions. It is not clear to
me that most readers (you?) understand the use of the ClamAV daemon.
It is not like running one of the anti-virus tools widely available
for Windows platforms, and simply running it affords no protection
whatever to a system which runs it. It just loads a few databases
(and so it uses a lot of memory) and waits for instructions to scan
something, from for example clamav-milter or clamdscan, using the
databases which it has loaded.

It is also not clear to me that, having built the latest version of
ClamAV, you now have a set of databases suitable for it to use. You
have given no instructions here about updating them, nor do you check
for example that 'freshclam' will be doing what it should be doing to
keep the databases up to date. It's all covered in the documentation
and this pseudo-HOWTO seems to me to do little but muddy the waters.

Are you somewhere near Chixizhen?

--

73,
Ged.
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

ClamAV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.