On Wed, 2010-02-24 at 15:20 +0800, Huo QiFeng wrote: > Hello, > > I'm creating an addon package A both on SuSe and Redhat, See A depends > on B. > > A depends on 1.0 and 2.0 of B. What do you mean "depends on 1.0 and 2.0 of B", as far as I know none of the higher level tools allow multiple versions of arbitrary packages (Ie. having B-1.0 _and_ B-2.0 installed at once). > On, For debian package on Ubuntu, I can use: "Depends B (>=1.0), B > (<=2.0)" If I understand correctly this just means "install a version of B whose version is _between_ 1.0 and 2.0", so for example B-1.5 would meet the criteria. This is not the same as requiring B-1.0 and B-2.0 at all. > Do you know how can I implement similar on SuSe for rpm .spec package? > It seems which does not work for below sentence. > "Requires: B >= 1.0, B <=2.0" I might use two lines, but that should do the same thing as the dpkg line. If you have control over B, I'd probably recommend you do something like: B: Provides: B_API = 1; A: Requires: B_API = 1 Also note that if version 3.0 is available most of the higher level tools will be unhappy in some way. Even if it's just to keep saying "can update to B-3.0, oops no I can't". -- James Antill - james@xxxxxxxxxxxxxxxxx http://yum.baseurl.org/wiki/releases http://yum.baseurl.org/wiki/whatsnew/3.2.26 http://yum.baseurl.org/wiki/YumMultipleMachineCaching _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list