I'd like to install a package named pA
.
- Package
pA-1.0.0-0
depends on packagepB-1.0.0-0
. - On a yum repository, one can find both
pB-1.0.0-0
andpB-1.1.0-0
. - Package
pA-1.0.0-0
is not compatible withpB-1.1.0-0
, and this information is not mentioned in the RPM ofpA
becausepB-1.1.0-0
did not exist back whenpA
was packaged.
This is a problem when trying to install pA
with yum
:
$ yum localinstall pA-1.0.0-0.el7.x86_64.rpm
...
Resolving Dependencies
-> Processing Dependency: pB >= 1.0.0 for package: pA-1.0.0-0.el7.x86_64
--> Package pB.x86_64 0:1.1.0-0.el7 will be installed # <-- version 1.1! ho no!
Is there a command line option in yum
to ask it to install the specific version demanded for its dependencies?
Specifically here, to install pA-1.0.0-0.el7.x86_64
rather than pA-1.1.0-0.el7.x86_64
.
Note: I cannot deal with pA
's dependencies by hand: in my real scenario, there is countless dependencies I wouldn't install separately with rpm
.
pB-1.1.0-0
was versionnedpB-2.0.0-0
instead? – YSC Jun 11 '18 at 11:38yum
. As you already said dependancies are managed from the .spec file used to build an RPM package. You can modify the spec file for existing packages withrpmrebuild
though – HBruijn Jun 11 '18 at 11:55