When trying to install a package or update the system, "yum" fails with "Error: Invalid version flag: {if,or}'" message
Issue
-
When installing a package using
yum installcommand or executingyum updatecommand, yum fails with the following error message# yum -y update [...] Running transaction Invalid version flag: ifor
# yum -y update [...] Running transaction Invalid version flag: or
Environment
- Red Hat Enterprise Linux 7
- yum
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.