rpm-software-management / yum

[DEPRECATED] YUM package manager
GNU General Public License v2.0
127 stars 87 forks source link

yum.Errors.MiscError: Invalid version flag: if #102

Closed asterbini closed 4 years ago

asterbini commented 5 years ago

I have just upgraded Fedora from version 28 to 30 through dnf system-upgrade. When I try to use package-cleanup --problems I get the error

yum.Errors.MiscError: Invalid version flag: if

This seems to be due to the function misc.string_to_prco_tuple that is not able to parse the string if (mysql-selinux if selinux-policy-targeted)

j-mracek commented 5 years ago

I would recommend to use dnf check command. I believe that the functionality is similar.

Also I want to point out that yum/yum-utils based on yum will be not present in Fedora 31. There is a compatibility package (dnf-utils) that provides compatibility with yum-utils using functionality from dnf and dnf-plugins.

dmnks commented 4 years ago

Thank you for the report. However, please note that this project has been deprecated and is no longer maintained upstream. Please consider migrating to DNF which is the successor of YUM. That said, I’ll close this issue now.