Here's the problem, I generated these 2 rpms that are dependent
Name: rpmtest
Version: 1.0.0
Release: 13
Name: rpmtestApp
Version: 1.0.0
Release: 13
Requires: rpmtest >= 1.0.0-13
this is for release 13 and I also generated the rpms for version 15
Name: rpmtest
Version: 1.0.0
Release: 15
Name: rpmtestApp
Version: 1.0.0
Release: 15
Requires: rpmtest >= 1.0.0-15
So If i install version 15 and after I install version 13, I should get a message that 15 is newer than 13 and is already installed but that is not what I get :
-> rpm -Uhv rpmtest-1.0.0-15.x86_64.rpm
Preparing... ########################################### [100%]
1:rpmtest ########################################### [100%]
-> rpm -Uhv rpmtestapp-1.0.0-15.x86_64.rpm
Preparing... ########################################### [100%]
1:rpmtestapp ########################################### [100%]
-> rpm -Uhv rpmtest-1.0.0-13.x86_64.rpm
error: Failed dependencies:
rpmtest >= 1.0.0-15 is needed by (installed) rpmtestapp-1.0.0-15.x86_64
Why does'nt it look to see if it will be upgraded or not, before looking at the Requires of rpmtestapp-1.0.0-15.x86_64
!!!
if I do
-> rpm -Uhv rpmtestapp-1.0.0-13.x86_64.rpm
Preparing... ########################################### [100%]
package rpmtestapp-1.0.0-15.x86_64
(which is newer than rpmtestapp-1.0.0-13.x86_64
) is already installed
that was the result I also expected for rpmtest-1.0.0-13.x86_64.rpm
!