[prev in list] [next in list] [prev in thread] [next in thread]
List: rpmorg-list
Subject: Re: dependecy checking without install
From: Hal Wine <hal () reactivity ! com>
Date: 2005-01-04 18:15:04
Message-ID: 41DADD28.6000304 () reactivity ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic