[opensuse] Replacing/renaming RPM - problem on 11.1 with zypper update
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? Thanks, Urs -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
Joe Morris wrote:
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).
Good point. However, the "environment-modules" RPM is not included in a repository which is known by zypper. I downloaded and installed it manually with rpm -Uhv. On the other hand, the "Modules" RPM comes from standard OSS repo (repo_oss.repo). I played around with the priority in repo_oss.repo, but still have the same effect. However, if I add a repo to zypper, which includes my "environment-modules" RPM. "zypper update" works as expected. But only, if this new repo has a low priority (=higher preference) than repo_oss.repo - which make sense at least. Does this mean that I have to have all installed RPMs available in repo to make "zypper update" work "correctly"? I would expect that a local installed RPM has always a higher preference? Urs -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2009-04-23 at 12:34 +0200, Urs Beyerle wrote:
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.
Because in 11.1 YOU does the equivalent of "zypper patch", not "update". - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAknwcrsACgkQtTMYHG2NR9V4tACgg9AXmweMS+Ui9ZYl58WkfdUf DGEAoJjzqZIFPWdzFsUQ5WSqRiYWCt+R =xXHi -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On Thursday, 2009-04-23 at 12:34 +0200, Urs Beyerle wrote:
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.
Because in 11.1 YOU does the equivalent of "zypper patch", not "update".
Oh, I see. thanks! Urs -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Joe Morris
-
Urs Beyerle