Although it looks weird, there can be reasons why OS should be looking as RedHat and using on background CentOS software updates. Let´s simulate this *tricky* environment 🙂
Ok, let´s say at the beginning – having RHEL in virtual environment is sign of prematurity of user. This OS belongs to enterprise level, into datacenters. Anyway:
After installing RHEL 6.5 x64 (RedHat is providing free *last beta* of versions – 6.5 x64 beta and 7.0 beta are downloadable from their website at the moment) and basic setup without subscription you´re stucked 🙂 Your only *repository* is your installation medium. That´s not enough, trust me.
First of all, changing repositories in /etc/yum.repos.d directory:
[root@localhost yum.repos.d]# ls -la
total 20
drwxr-xr-x. 2 root root 4096 Mar 4 10:12 .
drwxr-xr-x. 125 root root 12288 Mar 4 13:30 ..
-rw-r–r–. 1 root root 1116 Mar 4 11:44 rhel-source.repo
[root@localhost yum.repos.d]#
My final rhel-source.repo looks like:
[rhel-source]
name=Red Hat Enterprise Linux $releasever – $basearch – Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta – $basearch – Source
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[CentOS6base]
name=CentOS-6-Base
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY=CentOS-6
[CentOS6updates]
name=CentOS-6-Updates
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[CentOS6plus]
name=CentOS-6-Plus
mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
Briefly – RHEL repositories are disabled, new CentOS 6.x added. Next we can import key:
[root@localhost yum.repos.d]# rpm –import http://isoredirect.centos.org/centos/6.5/os/x86_64/RPM-GPG-KEY-CentOS-6
[root@localhost yum.repos.d]#
Let´s try to update yum:
[root@localhost yum.repos.d]# yum update
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
CentOS6base | 3.7 kB 00:00
CentOS6base/primary_db | 4.4 MB 00:00
CentOS6plus | 3.4 kB 00:00
CentOS6updates | 3.4 kB 00:00
CentOS6updates/primary_db | 2.1 MB 00:00
Setting up Update Process
Resolving Dependencies
….
….
….
Transaction Summary
=================================================================================
Install 4 Package(s)
Upgrade 163 Package(s)
Total download size: 358 M
Is this ok [y/N]: n
Exiting on user Command
At the beginning of output you can see mention about loading plugins (again subscription related). Ok, we have to adjust /etc/yum.conf 🙂 :
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
#plugins=1
installonly_limit=3
exclude=redhat-logos*
Disabling yum plugins + forbidding redhat-logos* package(s). Be very careful in any package handling – if you want to be master of RHEL, don´t allow to update every package. This logo ones brings into system many relations (plymouth, etc), deleting whole RedHat design, substituting with CentOS graphics, including logo, background, etc…. 🙂
Now we want to disable Subscription applet in Startup Applications:
Many people are recommending to do a full update = changing into CentOS with no exception. I would recommend to install CentOS, Scientific Linux, Oracle Linux directly.
-a-