On Mon, 20 Feb 2017 21:50:51 +0100
"john.david.r.smith" <john.david.r.smith(a)openmailbox.org> wrote:
i can install the package 'vim' via `sudo dnf install vim` but there
is no package called vim in the list returned by `dnf search vim`. is
there a way to get the real package name given the name vim? (i want
a generic way to resolve such a name).
This will work if the package containing vim is installed on your
This gives the location of the vim executable, /usr/bin/vim. There can
be a lot of output, so you could pipe it to less, locate vim | less
rpm -qf [path to vim from above command] or
rpm -qf /usr/bin/vim
This gives the name of the package that installed that executable.
$ rpm -q --filesbypkg vim-enhanced-8.0.329-1.fc25.x86_64
dnf info vim-enhanced will give general information about the package.
I am not aware of a way to query package contents if the package isn't
installed. e.g. it is in a repository Perhaps someone else will give