Yum does not respect RPM dependency version constraints

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

 



Hello all,

I'm having issues with Yum dependency resolving with regards to dependent package version constraints, on RHEL 6.5 with Yum 3.2.29.

In a PKG1 spec file, I have something like :
Requires: PKG2 >= 1.1.2-1
Requires: PKG2 < 1.2.0

In a Yum repo, PKG2 exists in several versions, among which 1.1.2-1 and 1.4.0-2, and PKG1 is in version 1.1.2-7

Here is what I see when running "yum install PKG1" :

--> Running transaction check
---> Package PKG1.noarch 0:1.1.2-7 will be installed
--> Processing Dependency: PKG2 < 1.2.0 for package: PKG1-1.1.2-7.noarch
--> Processing Dependency: PKG2 >= 1.1.2-1 for package: PKG1-1.1.2-7.noarch
--> Running transaction check
---> Package PKG2.x86_64 0:1.4.0-2 will be installed
--> Finished Dependency Resolution

Yum installs PKG2 1.4.0-2 instead of 1.1.2-1, thus does not respect the "Requires" from PKG1.
I also tried with "Requires: PKG2 = 1.1.2-1" in PKG1, with the same incorrect result.

Am I doing/understanding something wrong or is it a bug in Yum?

Thank you for your help,
Fabien.
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux