[Bug 475975] New: [zypper] support wildcards
https://bugzilla.novell.com/show_bug.cgi?id=475975 Summary: [zypper] support wildcards Classification: openSUSE Product: openSUSE 11.2 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: bitdealer@gmail.com QAContact: qa@suse.de Found By: --- Could we please get wildcard support in all of zyppers options? E.g. "zypper in kde*" to update every package starting with "kde". Another usecase would be e.g. updating to KDE 4.2 after a fresh 11.1 installation: E.g. I added the 3 KDE:KDE4:Factory and its aliases all start with kde4. Now according to https://bugzilla.novell.com/show_bug.cgi?id=469188 I will be able to do e.g. "zypper dup --from kde4-desktop kde4-community ..." but simply being able to run "zypper dup --from kde4*" instead of 5-6 different zypper calls to switch every kde4 package would simply be awesome. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475975
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=475975#c1
Ján Kupec
Could we please get wildcard support in all of zyppers options?
Maybe, but as a start, could you please go through all of the options that take arguments, create a list of them and think about where it would make sense to support wildcards?
E.g. "zypper in kde*" to update every package starting with "kde".
This works already. (BTW, to *update* all packages startring with 'kde' use "zypper up 'kde*'", not 'in').
Another usecase would be e.g. updating to KDE 4.2 after a fresh 11.1 installation:
E.g. I added the 3 KDE:KDE4:Factory and its aliases all start with kde4. Now according to https://bugzilla.novell.com/show_bug.cgi?id=469188 I will be able to do e.g. "zypper dup --from kde4-desktop kde4-community ..." but simply being able to run "zypper dup --from kde4*" instead of 5-6 different zypper calls to switch every kde4 package would simply be awesome.
You don't need to call zypper mutliple times to do this. Instead, you will be able to specify the --from option several times in one command (like it is with the --repo option right now). However, adding wildcards support should be easy in this case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475975
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=475975#c2
--- Comment #2 from Ján Kupec
(In reply to comment #0)
Could we please get wildcard support in all of zyppers options?
Maybe, but as a start, could you please go through all of the options that take arguments, create a list of them and think about where it would make sense to support wildcards?
BTW, you may find this little utility usefull while doing this: http://jniq.blogspot.com/2008/11/zypper-command-reference.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=475975
User bitdealer@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=475975#c3
Stephan Kleine
You don't need to call zypper mutliple times to do this.
Sorry, that probably was badly described. What I mean is that currently I had to run "zypper up" multiple times to move all KDE packages from OSS to KDE:KDE4:* (first without arguments, then for e.g. kdelibs4 & kdebase4 (iirc one of them doesn't get moved by the zypper up without arguments) which switches most stuff but still leaves some others behind so I then have to run zypper up for everything "rpm -qa kde* | grep 4.1.3" showd). Now, with the addition mentioned in the other bugreport I could simply do "zypper dup --from kde4-desktop kde4-community kde4-extra-apps" but simply being able to do "zypper dup --from kde4*" would still save a few key strokes. Another, IMHO very important, thing I'm missing is the ability to say "update all packages for which a newer version is available but do NOT switch the vendor!". The usecase e.g. would be using various repos from OBS and sticking the vendor to the preferred repository. If I now run zypper up it always asks me if I want to change the vendor to another repo if that contains a newer version which is totally annoying & a waste of time. So, basically, I want an option that updates all packages to a newer version (if available) but sticks with the current vendor and doesn't ask over and over if it should switch. Or is that already somehow possible? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com