Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
As far as I know, yum list is case insensitive, while yum install and yum remove are case sensitive -- probably as a security feature to prevent unintended system changes.
Is there a way to change the case sensitivity of any yum command?
No, but there is a workaround. When doing yum install and yum remove, to make it work case insensitive.
pack=Zvbi; yum install $(yum list $pack | cut -d' ' -f1 | tail -n1)
pack=iMaGeMaGiCk; yum install $(yum list $pack | cut -d' ' -f1 | tail -n1)
yum install imagemagick
yum install ImageMagick
echo ImageMagick AnotherPackage |tr [:upper:] '?'|xargs yum -y install
Currently yum does not support case insensitive operations on packages (install/remove), this way by design. There are some tickets/discussions on the Red Hat Bugzilla site about it.
Required, but never shown