LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Extracting rpm which is available in DVD (https://www.linuxquestions.org/questions/red-hat-31/extracting-rpm-which-is-available-in-dvd-885839/)

shwethavb 06-12-2011 12:53 AM

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

EricTRA 06-12-2011 02:23 AM

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

shwethavb 06-12-2011 05:28 AM

Quote:

Originally Posted by EricTRA (Post 4383151)
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

EricTRA 06-12-2011 05:54 AM

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

shwethavb 06-13-2011 03:36 AM

Quote:

Originally Posted by EricTRA (Post 4383251)
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.

EricTRA 06-13-2011 03:46 AM

Hi,

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

Kind regards,

Eric


All times are GMT -5. The time now is 07:02 PM.