Bug 443305

Summary: zypper rr, remove wrong repository
Product: [openSUSE] openSUSE 11.1 Reporter: Pavel Nemec <pnemec>
Component: YaST2Assignee: Jan Kupec <jkupec>
Status: RESOLVED INVALID QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: Beta 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Pavel Nemec 2008-11-10 09:58:19 UTC
I have 26 repository (see list bellow)
zypper rr 1 
remove second not first repostiory.

# zypper sl
#  | Alias                                                                         | Name                                                                          | Enabled | Refresh | Type
---+-------------------------------------------------------------------------------+-------------------------------------------------------------------------------+---------+---------+-------
1  | test                                                                          | test                                                                          | Yes     | No      | NONE
2  | 11-comuninty                                                                  | 11-comuninty                                                                  | No      | No      | NONE
3  | 11-debug                                                                      | 11-debug                                                                      | No      | No      | NONE
4  | 11-nonoss                                                                     | 11-nonoss                                                                     | No      | No      | NONE
5  | 11-oss-net                                                                    | 11-oss-net                                                                    | No      | No      | NONE
6  | 11_local_iso_dvd9_biarch                                                      | 11_local_iso_dvd9_biarch                                                      | No      | No      | NONE
7  | KDE:KDE4:Community                                                            | KDE:KDE4:Community                                                            | No      | Yes     | NONE
8  | KDE:KDE4:UNSTABLE:Desktop                                                     | KDE:KDE4:UNSTABLE:Desktop                                                     | No      | Yes     | NONE
9  | fate                                                                          | fate                                                                          | No      | No      | NONE
10 | home:simonschmeisser                                                          | home:simonschmeisser                                                          | No      | Yes     | NONE
11 | http://download.opensuse.org/repositories/Virtualization:/Qemu/openSUSE_11.0/ | http://download.opensuse.org/repositories/Virtualization:/Qemu/openSUSE_11.0/ | No      | Yes     | NONE
12 | http://download.opensuse.org/repositories/X11:/xfce/openSUSE_11.0/            | http://download.opensuse.org/repositories/X11:/xfce/openSUSE_11.0/            | No      | Yes     | NONE
13 | http://download.videolan.org/pub/videolan/vlc/SuSE/11.0/                      | http://download.videolan.org/pub/videolan/vlc/SuSE/11.0/                      | No      | Yes     | NONE
14 | local_packman                                                                 | local_packman                                                                 | No      | Yes     | NONE
15 | multimedia:audio                                                              | multimedia:audio                                                              | No      | Yes     | NONE
16 | nomad                                                                         | nomad                                                                         | No      | No      | NONE
17 | openSUSE-11.0-Updates                                                         | openSUSE-11.0-Updates                                                         | No      | Yes     | NONE
18 | openSUSE-11.1-Updates                                                         | Updates for 11.1                                                              | Yes     | Yes     | rpm-md
19 | openSUSE-dvd 11.1-0                                                           | openSUSE-dvd 11.1-0                                                           | Yes     | Yes     | yast2
20 | repo-debug                                                                    | openSUSE-11.1-Debug                                                           | No      | Yes     | NONE
21 | repo-non-oss                                                                  | openSUSE-11.1-Non-Oss                                                         | Yes     | Yes     | yast2
22 | repo-oss                                                                      | openSUSE-11.1-Oss                                                             | Yes     | Yes     | yast2
23 | server:monitoring                                                             | server:monitoring                                                             | No      | No      | NONE
24 | update11                                                                      | update11                                                                      | No      | Yes     | NONE
25 | vbox                                                                          | vbox                                                                          | No      | No      | NONE
26 | wine                                                                          | wine                                                                          | No      | No      | NONE

# zypper rr 1
Odebírá se repozitář '11-comuninty' [done]
Repository '11-comuninty' has been removed.
Comment 1 Pavel Nemec 2008-11-10 09:59:28 UTC
by the way
 zypper rr test
Repository 'test' not found by alias, number or URI.


doesn`t work either. So I actualy can`t remove this repository (note it is valid 11.1 beta4 repo!)
Comment 2 Jan Kupec 2008-11-10 14:48:34 UTC
I suspect the test repository is in fact a service. Try 'zypper rs test' (or rug's command 'zypper sd') instead of 'zypper rr test'. See also 'zypper help' and man zypper (Compatibility with rug section).

Did it help?
Comment 3 Pavel Nemec 2008-11-10 14:56:35 UTC
Sure, test is somehow service and I removing repositories. 
Sorry for noise.