Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What RPM packages are required to install vim on a recent version of Fedora?

share|improve this question
I use Fedora 14 and vim already came installed with it. Strange that you didn't get it pre-installed. – Dharmit Feb 18 '11 at 16:37
I am using a custom version of Fedora, which is why the package is not on there by default. – Justin Ethier Feb 18 '11 at 17:17
up vote 6 down vote accepted

On a modern Fedora, run

repoquery  --tree-requires vim-minimal


repoquery  --tree-requires vim-enhanced

to get a recursive list of packages on which your specified package depends, in a nice tree format.

Note that vim-minimal only installs /bin/vi with no modern enhancements nor online help, for use when only the root partition is available. I guess you want vim-enhanced or vim-X11.

If you only want a list of the direct dependencies, you could run

repoquery --requires --resolve vim-enhanced

to get the packages list or

repoquery --requires vim-enhanced 

to get the required capabilities.

share|improve this answer
And of course if you don't have repoquery, run yum install yum-utils. – mattdm Feb 16 '11 at 1:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.