RedhatLinux7,8,9を最終最新にする方法
Modified: 23 December 2005
2005年7月ごろまでは、Redhatのサイトからダウンロードできましたが、もうできなくなっているようです。
https://rhn.redhat.com/errata/RHSA-2003-267.htmlこのページの内容を書き換え、yum による方法にしました。
RedhatLinux7.3と9は、アップデートが出ていますが、RedhatLinux8はもうありません。
アップデートのための準備
「fedoralegacyプロジェクト」では、redhat7.3とredhat9については、アップデートが公開されています。
以下が、アップデートの目次ページです。
http://download.fedoralegacy.org/
上記から、redhat7.3のyumをダウンロードします。
http://download.fedoralegacy.org/redhat/7.3/legacy-utils/i386/
2005年11月11日時点で、"yum-1.0.3-6.0.7.x.legacy.noarch.rpm"がダウンロードできました。
以下のコマンドでインストールします。
# rpm -ivh yum-1.0.3-6.0.7.x.legacy.noarch.rpm
設定ファイルの変更
"/etc/yum.conf" のダウンロードサイトを日本のサイトに変更します。
[main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest exactarch=1 exclude=kernel* [base] name=Red Hat Linux $releasever base #baseurl=http://download.fedoralegacy.org/redhat/$releasever/os/$basearch baseurl=http://riksun.riken.go.jp/pub/Linux/fedoralegacy/redhat/$releasever/os/$basearch/ gpgcheck=1 [updates] name=Red Hat Linux $releasever updates #baseurl=http://download.fedoralegacy.org/redhat/$releasever/updates/$basearch baseurl=http://riksun.riken.go.jp/pub/Linux/fedoralegacy/redhat/$releasever/updates/$basearch/ gpgcheck=1 #[updates-testing] #name=Red Hat Linux $releasever updates-testing #baseurl=http://download.fedoralegacy.org/redhat/$releasever/updates-testing/$basearch #gpgcheck=1 [legacy-utils] name=Fedora Legacy utilities for Red Hat Linux $releasever baseurl=http://download.fedoralegacy.org/redhat/$releasever/legacy-utils/$basearch gpgcheck=1
更新の実行
# yum update
:
Is this ok [y/N]: y
:
#
なぜか、"iptables"でエラーが出ました。ここはひとまず、一旦"iptables"を削除して回避しましょう。
# yum update
Gathering package information from servers
Getting headers from: Red Hat Linux 7.3 base
Getting headers from: Fedora Legacy utilities for Red Hat Linux 7.3
Getting headers from: Red Hat Linux 7.3 updates
Finding updated packages
Downloading needed headers
Resolving dependencies
.package iptables needs kernel that has been excluded
package iptables needs kernel that has been excluded
package iptables needs kernel that has been excluded
# rpm -e iptables
:
#
GPGのエラーが出ました。
# yum update
:
Is this ok [y/N]: y
Getting man-1.5j-7.7x.0.i386.rpm
Error: GPG Signature check failed for /var/cache/yum/updates/packages/man-1.5j-7.7x.0.i386.rpm
You may want to run yum clean or remove the file:
/var/cache/yum/updates/packages/man-1.5j-7.7x.0.i386.rpm
You may also want to check to make sure you have the right gpg keys
Exiting.
#好ましくありませんが、"/etc/yum.conf"を以下のようにして、GPGチェックを無効にします。
:
#gpgcheck=1
: