LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   VIM installation on Red Hat Enterprise Linux 5 (http://www.linuxquestions.org/questions/red-hat-31/vim-installation-on-red-hat-enterprise-linux-5-a-4175442444/)

milind.t.patil 12-21-2012 07:34 AM

VIM installation on Red Hat Enterprise Linux 5
 
Hello,

I have installed RHEL 5 on my system. I want to use VIM editor. Please guide me from where i should download its rpm and steps to install vim editor on "red hat 5". If it needs any dependencies then also please suggest me which are those and how to install them.
Thanks in advance for consideration.

snowpine 12-21-2012 09:33 AM

Simply:

Code:

yum install vim
yum will resolve all dependencies. :)

milind.t.patil 12-21-2012 11:42 AM

Thanks for your reply. I tried your suggestion but it gives me following error.
Please guide me from where should i download rpm of vim (enhanced, common , minimal)and its dependencies for "Red Hat Enterprise Linux 5"



[root@localhost admin]# yum install vim
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Parsing package install arguments
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Match for argument: vim
Nothing to do
[root@localhost admin]#

snowpine 12-21-2012 11:44 AM

The error is self-explanatory: you must contact Red Hat and register your system.

https://access.redhat.com/home

milind.t.patil 12-21-2012 11:56 AM

This is not solution to my problem because i am using the RHEL 5 in virtual machine. Also yum is not the only way for installation.
I have installed other softwares too using rpm/binaries but i haven't exact get rpm for VIM(enhanced, common , minimal)and its dependencies for "Red Hat Enterprise Linux 5". Please guide me about it.

snowpine 12-21-2012 12:00 PM

The fact it is a virtual machine does not negate the need to register your Red Hat system. If you do not have the budget for a Red Hat subscription then I recommend you switch to the free CentOS distribution.

milind.t.patil 12-21-2012 12:12 PM

We are getting away from our main point of discussion. I am fine with the system which i have right now. The main issue is that i want to install VIM on my machine. If you know the source and steps of instalation of VIM on RHEL 5 then please help me.

snowpine 12-21-2012 12:21 PM

Quote:

Originally Posted by milind.t.patil (Post 4854491)
If you know the source and steps of instalation of VIM on RHEL 5 then please help me.

1. Contact https://access.redhat.com/home and renew your subscription
2. yum install vim

That is the quick, easy, supported, stable, and recommended method. (Other non-recommended methods may exist, I wouldn't know! ;))

druuna 12-21-2012 12:33 PM

@milind.t.patil: When it comes down to it it is your choice what you run on your computer, but....

It looks like you are asking us to participate in something that borders(??) on being illegal. This from the rules:
Quote:

Posts containing information about cracking, piracy, warez, fraud or any topic that could be damaging to either LinuxQuestions.org or any third party will be immediately removed.
LQ is rather strict when it concerns this rule.

If you want to install vim and not use rhn (for whatever reason): get the vim rpm, get all the rpm's that are needed to satisfy the dependencies and install them in the correct order. I think this is about as far as we can go.

TB0ne 12-21-2012 02:21 PM

Quote:

Originally Posted by milind.t.patil (Post 4854491)
We are getting away from our main point of discussion. I am fine with the system which i have right now. The main issue is that i want to install VIM on my machine. If you know the source and steps of instalation of VIM on RHEL 5 then please help me.

Nope, we're not getting away from it. You are using RHEL, and not paying for it...which means, you CANNOT download from the Red Hat Network, and use yum to automatically install things. If you want to stay with RHEL, you have two options:
  • Pay for it
  • Do what druuna said, and download ALL the RPM's manually, and install them manually
And why didn't you check the VIM website...where they have the source code available for download, along with the INSTRUCTIONS????
http://www.vim.org/

Really, the best solution would be for you to install CentOS, which is essentially RHEL, but FREE, and gives you access to the online repos for free too.

milind.t.patil 12-21-2012 11:48 PM

Hey druuna , calm down. I have registered Linux on my laptop, but i can not use that one because it has some h/w problem so i send it to for repair. But i can not stand still and stop my work. One of my friend suggest me about VM. That's why i installed RHEL 5 in VM on my desktop temporarily. But as i am unable to use VIM that's why i seek to my favorite forum LQ to get out of me from this trouble. I thought i need not to explain the background of my problem that's why i directly asked about its installation. That's why i said we are getting away.

I have no option other than install rpm manually, but i don't get exactly which rpms are to be installed for RHEL 5 on net even i don't get/understand it from vim.org . Because there are hell lot of rpm on it. So i expect the which rpm for VIM (enhanced,common,minimal)and rpm for its dependencies are needed to install. Please help me to get it.

Thanks for your replies guys.

John VV 12-22-2012 04:50 AM

It might have helped if you posted that in the first post
manually grab the rpms

rpmforge should have it
BUT it is VERY VERY incompatible with RHEL5 ( mostly fixed for rhel6 )
"yum-priorities" or "yum-protectbase" ARE NEEDED - and that is in RHN )
rpmforge WILL replace critical system files with different ones ( and you will not be compatible with RHN )

if you want to take a chance
install the rpmforge repo and use yum


for i386
http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm

for x86_64
http://packages.sw.be/rpmforge-relea....rf.x86_64.rpm

---- then the security hash ---------
Code:

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
see
http://wiki.centos.org/AdditionalRes...11404998926a1b

then install vim ( well search for vim , but it "should" be there" )

take EXTREME care
RF is incompatible with RHN and almost all of the other repos

TB0ne 12-22-2012 09:13 AM

Quote:

Originally Posted by milind.t.patil (Post 4854800)
Hey druuna , calm down. I have registered Linux on my laptop, but i can not use that one because it has some h/w problem so i send it to for repair. But i can not stand still and stop my work. One of my friend suggest me about VM. That's why i installed RHEL 5 in VM on my desktop temporarily. But as i am unable to use VIM that's why i seek to my favorite forum LQ to get out of me from this trouble. I thought i need not to explain the background of my problem that's why i directly asked about its installation. That's why i said we are getting away.

That shouldn't be a problem. If you're already a paying customer, just call them and give them your information/subscription number, and you can register your system. From there, use YUM to install it.
Quote:

I have no option other than install rpm manually, but i don't get exactly which rpms are to be installed for RHEL 5 on net even i don't get/understand it from vim.org . Because there are hell lot of rpm on it. So i expect the which rpm for VIM (enhanced,common,minimal)and rpm for its dependencies are needed to install. Please help me to get it.
Yes, you DO have the option of installing it from source, which I pointed out to you previously. The vim.org site has the source code and complete instructions on building it.

chrism01 01-03-2013 07:27 PM

If you have the Installation media (DVD/CD), you can also install from there via yum. I'm surprised its not already installed; its one of the most basic pkgs.
Have you checked your PATH?
Code:

which vim
/usr/bin/vim


John VV 01-03-2013 11:20 PM

Ether vi or nano "should" be installed by default

If all one needs to do is basic editing of text files from the terminal then "nano" is a good tool
It is a nice basic editor .


All times are GMT -5. The time now is 05:41 AM.