Bugzilla – Bug 364391
zypper repos should optionally give the repo URIs
Last modified: 2008-04-27 22:30:19 UTC
zypper repos # | Enabled | Refresh | Type | Alias | Name --+---------+---------+--------+-----------------------+---------------------- 1 | Yes | Yes | yast2 | Factory_OSS | Factory OSS 2 | Yes | No | yast2 | openSUSE-OSS-KDE 11.0 | openSUSE-OSS-KDE 11.0 3 | No | Yes | rpm-md | Factory_gwdg | Factory gwdg 4 | Yes | Yes | yast2 | Factory_non-OSS_extra | Factory non-OSS extra 5 | Yes | Yes | yast2 | Factory-debug | Factory-debug I often find myself wanting to check the repo URLs, and would find it useful if e.g. repos -v gave the URI of each repo as well, on another line of output. And please consider using an empty line between each repo, if the output is wider than the terminal window (which happens often) it is barely readable. Thanks.
Ah, just found zypper -v repos, but it doesn't work from inside shell, which is what I've been using. Other global options might be useful from shell as well. Exiting shell isn't always desirable because it loses all the built-up caches.
Yes, the -v for repos is a bit unfortunate. I suggest to implement it through a new -u (or --urls) command option of the repos command.
(In reply to comment #1 from Volker Kuhlmann) > Ah, just found zypper -v repos, but it doesn't work from inside shell, which is > what I've been using. Other global options might be useful from shell as well. > Exiting shell isn't always desirable because it loses all the built-up caches. About the shell, let me ask you this question first: is the shell still useful for you since 11alpha2 after the speed-up of the underlying libzypp metadata handling? (Apart from saving you from typing 'zypper' all the time :O).
:) You're right, zypper is now really fast and the shell not really needed any more. Good work. Thanks! A legible multiline output of zypper -v repos would still be useful though. The current output is made for easy parsing but is not easy reading.
done in svn, to be in zypper 0.11.1 $ zypper help repos repos (lr) List all defined repositories. Command options: -e, --export <FILE.repo> Export all defined repositories as a single local .repo file. -u, --uri Show also base URI of repositories. -p, --priority Show also repository priority. -d, --details Show more information like URI, priority, type. -U, --sort-by-uri Sort the list by URI. -P, --sort-by-priority Sort the list by repository priority. -A, --sort-by-alias Sort the list by alias. -N, --sort-by-name Sort the list by name.
*** Bug 383348 has been marked as a duplicate of this bug. ***
submitted