Sponsored

Not the solution you were looking for?

We’ll help you out!

[Linux] : How to configure yum to use CentOS repository in RHEL machine

One of our Techglimpse reader “Clooney”, asked us whether it is possible to install packages from CentOS repository on a RHEL machine ? Sometimes you might want do that; For instance, you might have installed RHEL operating system, but you should have registered to Red Hat Network for using its repository. In such case, you will not be able to use yum and not all packages are easy to install from source (especially if the package has plenty of dependencies !). Thankfully, you can make CentOS repository on RHEL machines and then yum to resolve those dependencies automatically. Ok ! Here we go :

Configure YUM Repo in RHEL

STEP 1 : When you run YUM, on a non-registered RHEL machine, you will end up in the below error (highlighted).

[root@catest ~]# yum install tkinter
Loaded plugins: rhnplugin, security
This system is not registered with RHN.RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package tkinter available.
Nothing to do
[root@catest ~]#