[Rpm-maint] OR'ed dependency check
pmatilai at redhat.com
Thu Feb 28 10:17:11 UTC 2008
On Thu, 28 Feb 2008, Alex Lobanovsky wrote:
> Hi ALL,
> I'm desperate to find help anywhere else, so, I ask you here.
> I need to OR dependency check in my rpm. In the header "Requires" entry. I
> need to have something like this:
> Requires: foo && boo || moo && boo
> Is there any way to accomplish that?
No. Rpm doesn't support OR dependencies. However similar effect can be
achieved by using virtual provides. For the above example, you'd have
something like "Provides: foo-moo" in both "foo" and "moo" packages, and
then your "or dependency" would be "Requires: foo-moo", which would be
satisfied by either "foo" or "moo" through the virtaul provide in them.
> Are there good RPM manuals on the net more fresh that from 2002?
http://docs.fedoraproject.org/drafts/rpm-guide-en/ is probably the most
up-to-date and complete manual there is atm.
- Panu -
More information about the Rpm-maint