Bug 458318

Summary: zypper rm kdebase3 deinstalls kde 4
Product: [openSUSE] openSUSE 11.3 Reporter: Dirk Mueller <dmueller>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: binner, deheld999, ma, postadal, schubi
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: need zypp API
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: solver testcase

Description Dirk Mueller 2008-12-11 14:09:47 UTC
there are two packages installed: 

kdebase3 = 3.5.10

and kdebase4-runtime = 4.1.3, which provides kdebase3 = 3.5.1 (note the missing zero)

and 

"zypper rm kdebase3" selects both(!) for deinstallation, thereby deinstalling all of KDE4. this is not what the user intended. 

"zypper rm kdebase3" should be equivalent to "zypper rm kdebase3 = 3.5.10".
Comment 1 Dirk Mueller 2008-12-11 14:11:24 UTC
Created attachment 259434 [details]
solver testcase
Comment 2 Jan Kupec 2008-12-11 16:02:37 UTC
(In reply to comment #0 from Dirk Mueller)
> "zypper rm kdebase3" should be equivalent to "zypper rm kdebase3 = 3.5.10".

No. It should request removal of the package by name, if package with such name exists.

There is a duplicate out there, i will try to find it.

To work around the problem, use the -n switch in the install command.
Comment 3 Jan Kupec 2008-12-11 16:04:43 UTC
wontfix for 11.1, to be fixed in 11.2
Comment 4 Jan Kupec 2009-04-07 18:37:31 UTC
*** Bug 470985 has been marked as a duplicate of this bug. ***
Comment 5 Jan Kupec 2009-04-07 18:40:11 UTC
Will need new libzypp API, see http://lists.opensuse.org/zypp-devel/2009-03/msg00024.html
Comment 6 Stephan Binner 2009-08-07 17:08:33 UTC
Re comment #3, will this make it into 11.2? :-)
Comment 7 Jan Kupec 2009-08-09 08:24:08 UTC
I'm afraid not :O(
Comment 8 Xiao Yu Yang 2010-02-04 07:58:23 UTC
Re command #7,can it be closed ?
Comment 9 Jan Kupec 2010-02-04 09:18:37 UTC
Jesse, actually the right component is 'libzypp', but you don't have to worry about that. I take it you reassigned the bug by accident, so i'm reassigning it back to me.
Comment 10 Jan Kupec 2010-02-04 09:20:39 UTC
(In reply to comment #8)
> Re command #7,can it be closed ?

Nope, the bug is still there, AFAIK. But it should be fixed soon (month or so).
Comment 11 Jan Kupec 2010-10-13 12:47:44 UTC
Fixed in zypper 1.4.2