Pages

Tuesday, November 13, 2012

Installing vim on CentOS 5.8

I usually use vim instead of vi in my Linux machines. Before I didn't had trouble installing it using the yum command, but what if there's no internet?

To install vim on your CentOS 5.8 go to your cd or mount your ISO(If you don't know how to mount ISO on linux, go to my tutorial how to > Mounting ISO on CentOS 5.8 )

Locate the folder CentOS inside your dvd/cd/iso and look for the vim-enhanced and vim-common:
ls -la | grep vim
Then install the vim-common first:
rpm -ivh vim-common-7.0.109-3.el5.3.i386.rpm 
Then install the vim-enhanced:
rpm -ivh vim-enhanced-7.0.109-3.el5.3.i386.rpm 
You can now use vim in your CentOS 5.8 using the vim command.
 vim /home/user/somefile.txt

No comments:

Post a Comment