> Hi, > > I recently started using Perl to write an installation script. > Can anyone tell me how I could get an RPM package installed using Perl? > > In addition, how can the package dependencies be dealt with? > I have tried insalling a package with the command: > > $cmd = `rpm -ivh telnet-client-krb5-1.3-5mdk.i586.rpm`; > print "\n".$cmd."\n"; > > however an error occurs specifying the dependency of the libkrb51-1.3-5mdk package. I have tried installing the dependency package before the telnet package like so: > > $cmd = `rpm -ivh libkrb51-1.3-5mdk.i586.rpm`; > print "\n".$cmd."\n"; > $cmd = `rpm -ivh telnet-client-krb5-1.3-5mdk.i586.rpm`; > print "\n".$cmd."\n"; > > but this lists several warnings saying the libkrb package 'conflicts' with others. It carries on to give the same error about depenencies for the same package. >
Using the various switches to RPM you can eliminate warnings and dependency checks, etc. and forcing things to install (though I suggest you be sure about wanting to do that before doing it). check out the rpm man pages for *a lot* more about rpm. > One other error it is giving is: > > 'V3 DSA signature: NOKEY, key ID 26752624' > > Is there something simple I am ignoring? > > Would permission rights have any impact on it? For example, do I need to have root access to install such a package? If so, can the script still be run on a users account whilst performing root actions? > It shouldn't. If I understand what the above is correctly, it is a way to confirm that the RPM you have matches that distributed by the original provider such that someone in the middle hasn't changed the RPM, aka it is for security and integrity and in most cases can probably be ignored. You may want to consult an rpm list to be sure I am correct on this. > Any help is much appreciated! > As for Perl stuff dealing with RPM, I would suggest starting here: http://search.cpan.org/search?query=RPM&mode=all And see if some of those modules can provide the hooks into RPM that you need. I have not used any of them and don't necessarily attest to their quality... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>