scripting rpm installs

Chadley Wilson chadley at pinteq.co.za
Sat Jan 8 16:41:12 UTC 2005


On Saturday 08 January 2005 18:27, Robert Locke wrote:
> On Sat, 2005-01-08 at 03:06, Chadley Wilson wrote:
> > Greetings
> >
<snipped>
>
> Chad,
>
> Couple of suggestions.
>
> 1) Have you looked at -F as an option for rpm?  I have an errata
> directory that I carry around.  Problem is, an rpm -Uvh $erratadir/*.rpm
> would not only upgrade everything it would also install everything else
> from that directory on me.  After I do an interactive or kickstart
> install, I simply point to that directory and do an rpm -Fvh
> ${erratadir}/*.rpm
>
> 2) This leads me to my second thought.  Why not just put a wildcard in
> for the version number?  For example, rpm -Uvh
> $packagedir/packagename-*.arch.rpm.  Remember that with rpm you can
> specify multiple filenames (either with a wildcard or put a space in
> between names).  Then during the "pre-flight check" rpm will resequence
> based on pre-req needs.
>
> HTH,
>
> --Rob

Hi Rob 
Thank you for the response.
In my script I have a small issue which I can't seem to solve, when running 
rpm -Uvh package1.rpm package2.rpm 
the space between the two rpms somehow is not working.
from the command line it works but not in the script.
the space between them, seem to separate the first part 
rpm -Uvh package1.rpm 
and then tried to execute the 2nd as a command?

I have tried the wildcard setup too, but I am then force to use the nodeps 
option on each line, while this works I get alot of negative output.
I have tried the .rpmmacro nut I am not sure if I am supposed to do something 
to make it active. since placing it in the root directory and starting to rpm 
-ivh simply doesnt work.

I have carefully setup a kickstart file and install the machines I am testing 
on.
I then configure and setup apt and download the extras. apt solves the 
dependencies, so therefore if I copy the archves folder, I can use those aps 
in conjuction with my kickstart install and will not have any dependancy 
errors.
How ever I am detoured each time by two or three packages that must be 
installed together, for example the kernel-module-nvidia and the nvidia-glx
(I think I have the names correct)

Is there some bash system variable or something that must be set first and 
that the script can set prior to the rpms being installed?


Thanks again for your response






-- 
Chadley Wilson
Redhat Certified Technician 
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================




More information about the users mailing list