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 |
Hello,
If I'm not mistaking, vim is installed by default on RHEL, check with: Code:
rpm -qi vim Code:
man rpm Code:
rpm -ivh <yourpackage> Eric |
Quote:
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 |
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 |
Quote:
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. |
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. |