LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-12-2011, 12:53 AM   #1
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Rep: Reputation: Disabled
Extracting rpm which is available in DVD


Hi all
I have RHEL5 installed on Vmware, am trying to copy and install "vim" package from DVD

hence issued following command
mount /dev/cdrom /media
cp -avr /media/vim* /mnt

vim-enhanced-7.0.109-3.i386.rpm vim-X11-7.0.109-3.i386.rpm
vim-common-7.0.109-3.i386.rpm
vim-minimal-7.0.109-3.i386.rpm

and i found above rpm files in /mnt

how can i install vim using above rpm's does those files needs to be extracted before starting install?? if so, how can i extract those rpm's ??

Please assist, Thank you

Last edited by XavierP; 06-12-2011 at 02:15 AM. Reason: Moved to Red Hat
 
Old 06-12-2011, 02:23 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

If I'm not mistaking, vim is installed by default on RHEL, check with:
Code:
rpm -qi vim
that will show you which version is installed, if any. If you want to install an rpm look into the man page for the rpm command:
Code:
man rpm
From it you'll learn how to use rpm to install packages, that is if all dependencies are fulfilled.
Code:
rpm -ivh <yourpackage>
Kind regards,

Eric
 
Old 06-12-2011, 05:28 AM   #3
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EricTRA View Post
Hello,

If I'm not mistaking, vim is installed by default on RHEL, check with:
Code:
rpm -qi vim
that will show you which version is installed, if any. If you want to install an rpm look into the man page for the rpm command:
Code:
man rpm
From it you'll learn how to use rpm to install packages, that is if all dependencies are fulfilled.
Code:
rpm -ivh <yourpackage>
Kind regards,

Eric
Hi Eric, Thank you for immediate response,
I agree Vim has to be a default package on RHEL, but am not sure, why vim package is not available by default on my system, pls see below output

[root@localhost ~]# rpm -qi vim
package vim is not installed
[root@localhost ~]#

hence tried "yum install vim "and found that even yum configuration is not done on my PC, hence trying to copy vim package directly from DVD and to install it.



Please correct me if am wrong
 
Old 06-12-2011, 05:54 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

If you're using RHEL and have not bought a subscription then you are not going to get updates from them (once the evaluation period is passed) and yum will not work. Red Hat is not free. If you want a free and open source distribution that is exactly the same as RHEL (without the graphical artwork and trademark stuff) then have a look at CentOS or Scientific Linux. Both are spin offs of RHEL.

You could also set up your DVD to be a local repository for yum and install that way, or use the rpm command as pointed out.

Kind regards,

Eric
 
Old 06-13-2011, 03:36 AM   #5
shwethavb
LQ Newbie
 
Registered: May 2011
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by EricTRA View Post
Hello,

If you're using RHEL and have not bought a subscription then you are not going to get updates from them (once the evaluation period is passed) and yum will not work. Red Hat is not free. If you want a free and open source distribution that is exactly the same as RHEL (without the graphical artwork and trademark stuff) then have a look at CentOS or Scientific Linux. Both are spin offs of RHEL.

You could also set up your DVD to be a local repository for yum and install that way, or use the rpm command as pointed out.

Kind regards,

Eric

Thanks Eric
I copied vim rpm's alone from DVD to /etc directory and installed those packages using rpm -ivh command and now able to use vim editor for practice purpose.
 
Old 06-13-2011, 03:46 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Glad to hear you got it working and thanks for marking the thread as solved. Have fun with Linux.

Kind regards,

Eric
 
  


Reply



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
conflict in extracting RPM yusufs Linux - Newbie 4 12-18-2007 05:33 AM
Extracting '.rpm' in YaST. rlhanson Linux - Newbie 3 03-26-2006 10:57 PM
Extracting rpm files vsouza Linux - Software 5 10-08-2004 01:31 PM
extracting 1 file from RPM sopiaz57 Linux - General 3 04-09-2004 03:22 PM
Extracting specs out of a src.rpm? rverlander Linux - General 4 08-22-2002 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration