[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need assistance in determining if an rpm is installed
From: |
Alexander Mattausch |
Subject: |
Re: Need assistance in determining if an rpm is installed |
Date: |
Tue, 15 Jan 2002 12:18:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.7) Gecko/20011221 |
Rune Mossige wrote:
>Hello,
>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 cfagent.conf file, I have:
>
>groups:
> linux::
> have_openmotif-2_1_30-8 = ( "/bin/rpm -q openmotif-2.1.30-8" )
>
>
>shellcommands:
> linux.!have_openmotif-2_1_30-8::
> "/bin/rpm -Uhv
/PCgsts001/pc/software/linux/openmotif-2.1.30-8.i386.rpm"
>
Another idea (sorry, should have gone to the list in the first place):
RPM does not install packages twice. It may be easiest for you just to
have a directory in which you copy all the packages that have to be
installed on a machine, and
shellcommands:
linux::
"/bin/rpm -Uhv /PCgsts001/pc/software/linux/*.rpm"
does this for you. With this you can even upgrade packages without
editing your cfengine files just by copying it into this directory. You
only have to keep attention that there is only one version of a package
in this directory and that the dependencies are satisfied (maybe a
--nodeps in the command line may help).
Regards,
Alex
Re: Need assistance in determining if an rpm is installed,
Alexander Mattausch <=
Re: Need assistance in determining if an rpm is installed, Ted Zlatanov, 2002/01/15