Thanks Jesper, I'll check it out.

Here's what I do personally which seems to work great;

I'm using Slackware Linux, and I build ClamAV from source. But, I don't
want to just do "make install" as that leaves me with the responsabillity
to manually clean out old versions by hand etc. So what I do instead is
use "checkinstall".  checkinstall is a tool that'll monitor an
installation done by "make install" and then it'll build a package for
your distribution that you can later uninstall or upgrade with your
distributions standard tools.  checkinstall can build both Slackware
packages, RPMs, Debian .deb packages etc.

Here's an example of how I do it (you would ofcourse use rpm in place of
my use of slackwares installpkg/removepkg/upgradepkg tools).

  ; First I configure clamav-0.65
$ ./configure <with whatever options I want to use>
  ; then I build it
$ make
  ; then we change to the root user to install/build package
$ su
  ; then we run checkinstall (which then runs 'make install' and monitor it)
# checkinstall -S
  ; the -S option tells checkinstall to build a Slackware package,
  ; you'd ofcourse want to build a RedHat one
  ; you can run checkinstall without any options and it will ask
  ; what distribution to build a package for
  ; now, after checkinstall finishes I'm left with a Slackware package
  ; named  clamav-0.65-i486-01.tgz which I can then install
# installpkg clamav-0.65-i486-01.tgz

  ; Now that was pretty easy...
  ; if I want to remove clam again I can now simply run
# removepkg clamav-0.65-i486-01
  ; just as with any other package

Now, let's assume I have 0.65 installed as pr the instructions above and I
download 0.67 and want to upgrade. Then I'd first build 0.67 *just like* I
did with the 0.65 version above. This time I'l be left with a package
called clamav-0.67-i486-01.tgz , and to upgrade I only have to run

# upgradepkg clamav-0.67-i486-01.tgz

And the magic happens :-)

Same thing with RedHat, except you'd use "rpm -i" etc to
install/remove/upgrade the generated packages.

You can find checkinstall here :
http://asic-linux.com.mx/~izto/checkinstall/index.php

I'm personally using the latest checkinstall-1.6.0beta3 version which
works like a charm.

You should read the very informative README file here :
http://asic-linux.com.mx/~izto/checkinstall/docs/README
If you want all the details, but simple usage like above should do you
just fine in most cases.

In my oppinion checkinstall is a life saver when doing a lot of source
installs of software.


Kind regards,


Jesper Juhl

-- --

Craig Daters ([EMAIL PROTECTED])
Systems Administrator
West Press Printing
1663 West Grant Road
Tucson, Arizona 85745-1433

Tel: 520-624-4939
Fax: 520-624-2715

www.westpress.com

--


------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to