Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.