show-installed -f yum outputs the options in the wrong format. It outputs groups and exclusions as: @cinnamon-desktop -eog While this matches the documention in yum manpage, it doesn't match the actual program: https://bugzilla.redhat.com/show_bug.cgi?id=1026598 What is needed is either "--exclude=eog" or a "-- -eog". Thanks!
We can add '--' at the beginning, but there's a problem that end-of-options is recognized only once. It's likely that most users that feed show-installed output to yum *already* use something like "yum <options> install -- $(cat show-installed-output)", and the following patch would break that: --- a/show-installed.py +++ b/show-installed.py @@ -306,6 +306,8 @@ class ListPrinter: indent = '' separator = '\n' elif self.options.format == "yum": + # end options, so "-<pkg>" excludes work + self.output.write('-- ') indent = '' separator = ' ' else: To avoid that, I'd rather not touch the code, and suggest using "--" when using the "--format yum" option.
Closing as per comment #1 and this yum-devel thread: http://lists.baseurl.org/pipermail/yum-devel/2013-November/010419.html