Re: question about packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux