Discussion:
Making Suggestions for dependency resolution
Michael Dengler
2007-07-24 20:37:55 UTC
Permalink
Hi All,

How do I make a suggestion when an rpm dependency is not met?

ie:

My spec file for mypackage-1.0-1.i386.rpm:

Requires: somepackage

I'd like rpm to suggest a full package name for somepackage when the user
tries to install the mypackage-1.0-1.i386.rpm

eg:

rpm -ivh mypackage-1.0-1.i386.rpm
error: Failed dependencies:
somepackage is needed by mypackage-1.0-1.i386
suggestion:
somepackage-0.9-1.i386.rpm

I thought I'd seen this behaviour before when installing rpms but can't seem
to find any info on it.

Any help is greatly appreciated.

Thanks

Mike
Panu Matilainen
2007-07-25 07:08:41 UTC
Permalink
Post by Michael Dengler
Hi All,
How do I make a suggestion when an rpm dependency is not met?
Requires: somepackage
I'd like rpm to suggest a full package name for somepackage when the user
tries to install the mypackage-1.0-1.i386.rpm
rpm -ivh mypackage-1.0-1.i386.rpm
somepackage is needed by mypackage-1.0-1.i386
somepackage-0.9-1.i386.rpm
I thought I'd seen this behaviour before when installing rpms but can't seem
to find any info on it.
For rpm to suggest dependency resolutions you'll need to have a "solve
database" available, for example on RHL, early FC and RHEL <= 4 this is
called rpmdb-redhat, newer releases don't have that anymore.

- Panu -

Loading...