Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 down vote accepted

On a modern Fedora, run

repoquery  --tree-requires vim-minimal

or

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
3  
And of course if you don't have repoquery, run yum install yum-utils. –  mattdm Feb 16 '11 at 1:30

Your Answer

 
discard

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.