Easy way to change all repos used in Yast when upgrading to a new release

As I have 15 repo’s enabled in Yast it a bit tedious changing them in the package manager, is there an easier way to bulk change them? Something like doing a kfilereplace on the /etc/zypp/repos.d/ folder and changing all occurances of 11.3 to 11.4 (in all *repo, which are all the files in the folder). Will this work?

IMO it would be best to reduce the number active to the base repos. There is no certainty that all those repo’s will continue in 11.4

Post the list and we might have a better chance to advise.

zypper lr -d

 Contrib                                  	 Yes     	 Yes     	99	 rpm-md   	 http://download.opensuse.org/repositories/openSUSE%3a/11.3%3a/Contrib/standard                            
 Emerald themes IOtz1009's repo           	 Yes     	 Yes     	99	 rpm-md   	 http://download.opensuse.org/repositories/home:/lOtz1009:/emerald/openSUSE_11.3/                          
 FreeType2 subpixel                       	 Yes     	 Yes     	99	 rpm-md   	 http://opensuse-community.org/subpixel/openSUSE_11.3/                                                     
 KDE4_factory_-_desktop                   	 Yes     	 Yes     	19	 rpm-md   	 http://download.opensuse.org/repositories/KDE%3a/Distro%3a/Factory/openSUSE_11.3/                         
 KDE4_factory_-_extra                     	 Yes     	 Yes     	19	 rpm-md   	 http://download.opensuse.org/repositories/KDE%3a/Extra/openSUSE_11.3_KDE_Distro_Factory/                  
 KDE4_factory_-_playground                	 Yes     	 Yes     	19	 rpm-md   	 http://download.opensuse.org/repositories/KDE%3a/Unstable%3a/Playground/openSUSE_11.3_KDE_Distro_Factory/ 
 LibreOffice - stable                     	 Yes     	 Yes     	99	 rpm-md   	 http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_11.3/                              
 Mozilla                                  	 Yes     	 Yes     	99	 rpm-md   	 http://download.opensuse.org/repositories/mozilla/openSUSE_11.3/                                          
 MyTemp                                   	 Yes     	 Yes     	40	 plaindir 	 dir:///home/smiley/MyTemp/                                                                                
 OpenSUSE-11.3-Non-Oss                    	 Yes     	 Yes     	99	 yast2    	 http://download.opensuse.org/distribution/11.3/repo/non-oss/                                              
 OpenSUSE-11.3-Oss                        	 Yes     	 Yes     	99	 yast2    	 http://download.opensuse.org/distribution/11.3/repo/oss/                                                  
 OpenSUSE-11.3 updates                    	 Yes     	 Yes     	30	 rpm-md   	 http://download.opensuse.org/update/11.3/                                                                 
 Packman                                  	 Yes     	 Yes     	99	 rpm-md   	 http://packman.inode.at/suse/openSUSE_11.3/                                                               
 Recoll                                   	 Yes     	 Yes     	99	 rpm-md   	 http://download.opensuse.org/repositories/home:/dockes/openSUSE_11.3/                                     
 VdPau (Nvideo video api)                 	 Yes     	 Yes     	40	 rpm-md   	 http://download.opensuse.org/repositories/X11:/Drivers:/Video/openSUSE_11.3                               
 Wine                                     	 Yes     	 Yes     	99	 rpm-md   	 http://download.opensuse.org/repositories/Emulators%3a/Wine/openSUSE_11.3/                                

Get rid of the factory stuff for sure. Also MyTemp and contrib.

If it were me I’d only have

 OpenSUSE-11.3-Non-Oss                    	 Yes     	 Yes     	99	 yast2    	 http://download.opensuse.org/distribution/11.3/repo/non-oss/                                              
 OpenSUSE-11.3-Oss                        	 Yes     	 Yes     	99	 yast2    	 http://download.opensuse.org/distribution/11.3/repo/oss/                                                  
 OpenSUSE-11.3 updates                    	 Yes     	 Yes     	30	 rpm-md   	 http://download.opensuse.org/update/11.3/                                                                 
 Packman                                  	 Yes     	 Yes     	99	 rpm-md   	 http://packman.inode.at/suse/openSUSE_11.3/                                                               
VdPau (Nvideo video api)                 	 Yes     	 Yes     	40	 rpm-md   	 http://download.opensuse.org/repositories/X11:/Drivers:/Video/openSUSE_11.3                               

On 03/07/2011 05:06 PM, google01103 wrote:
>
> As I have 15 repo’s enabled in Yast it a bit tedious

first, you probably need to read the paragraph here which begins with
IMPORTANT: http://tinyurl.com/33qc9vu

but, lets say you need to keep all 15, and every one of those has two
places that 11.3 needs to be changed to 11.4…

then, you could just click edit on each repo, and delete a couple of
3s and add a couple of 4s on each, then click Ok…

that would be two clicks (edit and ok) and four key strokes for
each…or for 15 it would be 30 clicks and 60 key stokes…

since there are 319 key strokes in your posting, you are already
overly ‘tedious’ in trying to save work… :wink:

ymmv


DenverD
CAVEAT: http://is.gd/bpoMD
[NNTP posted w/openSUSE 11.3, KDE4.5.5, Thunderbird3.0.11, nVidia
173.14.28 3D, Athlon 64 3000+]
“It is far easier to read, understand and follow the instructions than
to undo the problems caused by not.” DD 23 Jan 11

I assume 11.4 ships with 4.6 and I have a need for 4.6.1 and only contrib provides Chromium and as I like to stay a bit on the bleeding edge there’s reason for most of the others, though some should probably be dropped

You should consider the Tumbleweed - openSUSE if you want the bleeding edge.

feel ok with bleeding edge apps but the Kernel, that scares me (though I do build my own graphics drivers)

haven’t really looked into it yet, actually just looked into what’s in the repo and not that much I care about (other than libreoffice and mozilla which I have repos for and virtualbox which for some I disabled the repo). Do plan on following it though.

thanks for the suggestion

It is a new project, so I think the repos will get more and more packages in the future. :slight_smile:

IMHO You should also consider Arch or Gentoo for the bleeding edge.

Best regards,
Greg

thanks for the suggestion, but I really like openSuse, been using it since 2005 (?) gonna take a lot to get me to change;).

As most of my apps are KDE and I use Factory (have used Unstable) and most of the other apps I use are current I feel I’m pretty bleeding edge, in a safe kind of way.

also figure Arch and Gentoo are much more work (Gentoo still needs to compile everything?) and not as polished an implementation of KDE

regards,

I think much less work compared to using Factory :slight_smile: and probably much safer.

Best regards,
Greg

My bad, me didn’t explain well - I was referring to KDE Factory, not openSuse Factory (“most of my apps are KDE and I use Factory” should have said “KDE Factory”).

On 2011-03-07 17:06, google01103 wrote:
>
> As I have 15 repo’s enabled in Yast it a bit tedious changing them in
> the package manager, is there an easier way to bulk change them?
> Something like doing a kfilereplace on the /etc/zypp/repos.d/ folder and
> changing all occurances of 11.3 to 11.4 (in all *repo, which are all the
> files in the folder). Will this work?

In comment 0 of Bugzilla 677425, there is this trick:

After switch repositories from 11.3 to 11.4
(sed -i “s/11.3/11.4/g” /etc/zypp/repos.d/*),

I can’t say if it is correct; I have doubts if it would work if “keep
downloaded packages” is on.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

robin_listas - big time thanks, didn’t know about the liblzma0 issue which isn’t noted as being resolved - oldcpu just posted a warning