LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 12-21-2012, 07:34 AM   #1
milind.t.patil
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Rep: Reputation: Disabled
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.
 
Old 12-21-2012, 09:33 AM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,911

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Simply:

Code:
yum install vim
yum will resolve all dependencies.
 
Old 12-21-2012, 11:42 AM   #3
milind.t.patil
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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]#

Last edited by milind.t.patil; 12-21-2012 at 11:44 AM.
 
Old 12-21-2012, 11:44 AM   #4
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,911

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

https://access.redhat.com/home

Last edited by snowpine; 12-21-2012 at 11:46 AM.
 
Old 12-21-2012, 11:56 AM   #5
milind.t.patil
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-21-2012, 12:00 PM   #6
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,911

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
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.
 
Old 12-21-2012, 12:12 PM   #7
milind.t.patil
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-21-2012, 12:21 PM   #8
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,911

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Quote:
Originally Posted by milind.t.patil View Post
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! )

Last edited by snowpine; 12-21-2012 at 12:28 PM.
 
3 members found this post helpful.
Old 12-21-2012, 12:33 PM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
@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.
 
2 members found this post helpful.
Old 12-21-2012, 02:21 PM   #10
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,230

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by milind.t.patil View Post
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.
 
2 members found this post helpful.
Old 12-21-2012, 11:48 PM   #11
milind.t.patil
LQ Newbie
 
Registered: Dec 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-22-2012, 04:50 AM   #12
John VV
Guru
 
Registered: Aug 2005
Posts: 12,691

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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
 
Old 12-22-2012, 09:13 AM   #13
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,230

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by milind.t.patil View Post
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.
 
Old 01-03-2013, 07:27 PM   #14
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,246

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
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
 
Old 01-03-2013, 11:20 PM   #15
John VV
Guru
 
Registered: Aug 2005
Posts: 12,691

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help php5 installation on red hat enterprise linux 4 ipvirg Linux - Newbie 3 09-10-2009 07:19 PM
Red Hat Linux Enterprise Installation Steps avinash_vas Linux - Software 4 09-04-2004 06:14 PM
Installation doesn't recognize Red Hat Enterprise Linux ES installation cd bizkut Red Hat 2 08-15-2004 08:57 AM


All times are GMT -5. The time now is 10:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration