On Mon, 20 Feb 2017 21:50:51 +0100 "john.david.r.smith" <john.david.r.smith@xxxxxxxxxxxxxxx> wrote: > hi. > 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 system. locate vim 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. vim-enhanced-8.0.329-1.fc25.x86_64 $ rpm -q --filesbypkg vim-enhanced-8.0.329-1.fc25.x86_64 vim-enhanced /etc/profile.d/vim.csh vim-enhanced /etc/profile.d/vim.sh vim-enhanced /usr/bin/rvim vim-enhanced /usr/bin/vim vim-enhanced /usr/bin/vimdiff vim-enhanced /usr/bin/vimtutor 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 that answer. _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx