Such is the value of the openSUSE Build Service from my perspective that I now have over 40 repositories registered on my main SUSE machine! I found that zypper was slightly awkward for managing this number of repositories, so I found a few hours of spare time to knock up the following; hope it's of use to somebody. Patches welcome!
Here is an extract from the documentation for those reading this offline on their Blackberries :-)
rypper - extension for managing multiple repositories via zypper
# See complete usage documentation rypper --help
# list all disabled repos rypper -d
# list all enabled repos with autorefresh off rypper -e -R
# list all repos which have anything to do with KDE rypper -x kde
# list priority and URIs for all repos whose alias contains 'home:' rypper -a home: l -pu
# enable autorefresh on all OpenSUSE Build Service repos rypper -u download.opensuse.org -R mr -r
# remove all repos on external USB HDD mounted on /media/disk rypper -u /media/disk rr
rypper is a wrapper around zypper for performing repository operations in batch. It allows selection of which repositories to operate on via a number of different repository selection specifiers.
The zypper commands which can be wrapped are:
removerepo, rr Remove specified repository. modifyrepo, mr Modify specified repository. refresh, ref Refresh all repositories. clean Clean local caches.
Additionally, the zypper pseudo-command 'l' can be used to list matching repos. There are a number of options controlling the output format; run C<rypper --help> for details.
If no zypper command is provided, it defaults to the 'l' pseudo-command, trying to intelligently choose which fields to display, e.g. omitting any which were included in the repo selection parameters.