help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need assistance in determining if an rpm is installed


From: Ted Zlatanov
Subject: Re: Need assistance in determining if an rpm is installed
Date: Tue, 15 Jan 2002 10:00:43 -0500
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.1 (i386-redhat-linux-gnu)

Rune Mossige <runemo@stavanger.Geco-Prakla.slb.com> writes:

> I am working on a stock RedHat 7.2 system, and I would like to set up a
> section that will check if some specific RPM's installed. And, if they
> are not there, the I want to install them. I am using 2.0.a15.

In my experience the shell escapes (as of 1.6.3) are not very
productive for defining classes in all but the simplest cases.
Perhaps this has changed in 2.0.

You are asking for something pretty specific, though.  Why not make a
module that does all the hard work separately from cfengine?  The
module can be a shell or Perl or C (or whatever else) program.  You
just print out "+ClassName" to standard output for every class you
want to define.  I don't think you have to predeclare each class, but
I may be wrong.

If you are interested in this, but can't write that module, I'll look
into it.  It sounds useful enough that many of us on this list would
want to use it.  A version for the Sun packages and other platforms
would be nice too.  Let us know.

Thanks
Ted




reply via email to

[Prev in Thread] Current Thread [Next in Thread]