


Red Hat Enterprise Linuxではサブスクリプション登録(保守契約)が有効でないとredhat.repoを使用してのyumが実行できません
本来商用OSなので信頼あるサービスの提供を受けるなら、それなりの対価は必要なのですが大人の事情もあって契約切れになる場合もあります
それでも脆弱性対応でプログラムのアップデートの必要に迫られるときは互換OSのCentOSのレポジトリを使用してアップデートすることも可能です
もちろんユーザー責任ですが…..
- CentOSのレポジトリを用意
- Update
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
[root@host01 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.1 (Santiago) [root@host01 ~]# vi /etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS-6.1 - Base mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 [updates] name=CentOS-6.1 - Updates mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 [extras] name=CentOS-6.1 - Extras mirrorlist=http://mirrorlist.centos.org/?release=6&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6 |
試しにCentOS-Base.repoを使用してupdateしてみます
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
[root@host01 ~]# yum --enablerepo=base update Loaded plugins: product-id, refresh-packagekit, subscription-manager Updating Red Hat repositories. base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package DeviceKit-power.x86_64 0:014-1.el6 will be updated ---> Package DeviceKit-power.x86_64 0:014-3.el6 will be an update (snip) xorg-x11-drv-modesetting x86_64 0.5.0-1.el6 base 21 k xorg-x11-glamor x86_64 0.5.0-6.20130401git81aadb8.el6 base 93 k yum-plugin-fastestmirror noarch 1.1.30-17.el6_5 updates 28 k Transaction Summary ================================================================================ Install 50 Package(s) Upgrade 793 Package(s) Total download size: 620 M Is this ok [y/N]: |
RHELでCentOS Repoを使うなら最初からCentOSでよくね?
仰るとおり…でも大人の事情が(^^;