Re: dependecy checking without install

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

 



Ralf Lehmann wrote, around 01/04/2005 09:21 AM:
No only "rpm -qp" command reads only the header all other commands download the package first.
so i must find a way do use the output from "rpm -qpR"
to generate a new "local" rpm query to check if the requirements are fulfilled

Well, one way would be to use rpmrebuild (rpmrebuild.sf.net).
<uglyHack>
You could have a local dummy package (maybe just one file), pass that to RPM rebuild specifying the filter option (which lets you edit the spec file on the fly). Insert the requirements from your 'rpm -qpR' command into that spec file, and then try to install the resulting RPM. (If the rpm won't even build, then you also know it won't install)
</uglyHack>


Of course, if you're trying to do this with a series of packages, where one might require something provided by a prior one, you'll have even more fun to deal with. You might want to try parsing the output of
rpm -qp --qf '[%{*:xml}]'
if you have a new enough version of RPM. That will give you the provides info as well to add to the spec.


Good luck!
--Hal

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux