Yum has some sort of built-in "semantic sugar" which does a translation of short-hand package names to actual package names, but I can't figure out how to easily get a hold of it.
Here's a simple repro:
yum install vim
(completes successfully, installs vim-enhanced-some-version...)rpm -q vim
(reports not installed)yum info vim
(no matching packages)yum install vim
(vim-enhanced-blah-blah-blah already installed...)
Also, doing rpm -qa | grep "vim-"
lists 4 packages but no way to easily figure out the "root" package that is the logical equivalent of just running yum install vim
.
How can I figure out a sufficiently qualified package name so that I can do rpm or yum queries on it without having to do some silly dance with scraping the output from yum install?
Always use yum.
yum provides vim
Explicit provides like this are rare in packaging. yum can also search name, file names, or automatically generated library provides from the linker.