On 04/23/2009 06:34 PM, Urs Beyerle wrote:
Hi,
I would like to replace the OpenSUSE package "Modules" with a newer package called "environment-modules" (Fedora/RHEL rpm name). In the environment-modules.spec file I have
Provides: Modules = %{version} Obsoletes: Modules < %{version}
This leads to
# rpm -q --provides environment-modules Modules = 3.2.6 environment-modules = 3.2.6-23.1
# rpm -q --obsoletes environment-modules Modules < 3.2.6
The openSUSE RPM Modules has the version 3.1.6 (Modules-3.1.6-38.112). Epoch is for both packages equal "none". I can install my environment-modules RPM with rpm -Uhv. However, if I run "zypper update" on openSUSE 11.1, zypper wants to replace my *newer* environment-modules RPM.
# zypper udpate Loading repository data... Reading installed packages...
The following NEW package is going to be installed: Modules
The following package is going to be REMOVED: environment-modules
In zypper.log I see 2009-04-23 12:25:48 <1> host(13604) [zypper++] solve-commit.cc(summary):593 <install> (3581)Modules-3.1.6-38.112.i586(repo_oss) 2009-04-23 12:25:48 <1> host(13604) [zypper++] solve-commit.cc(summary):593 <uninstall> (17715)environment-modules-3.2.6-23.1.i586(@System)
I see this only on openSUSE 11.1. OpenSUSE 10.3 and 11.0 do not want to remove my newer environment-modules RPM. In contrast to "zypper update", yast online update does not remove my environment-modules RPM.
I use the original zypp.conf of openSUSE 11.1. Why does this happen with zypper? Is this a feature or a bug?
Perhaps the repository the Modules package is in has a lower priority (and thus a higher preference for packages). -- Joe Morris Registered Linux user 231871 running openSUSE 11.1 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org