aptのインストール(RedHat9)
aptをインストールします。
# rpm -ivh http://download.fedora.us/fedora/redhat/9/i386/RPMS.stable/apt-0.5.5cnc6-0.fdr.8.rh90.i386.rpm
次に,/etc/apt/sources.listに以下の内容を追加します。
rpm http://download.fedoralegacy.org/apt redhat/9/i386 os updates legacy-utils
GPGを追加します。
rpm --import http://www.fedoralegacy.org/FEDORA-LEGACY-GPG-KEY
上記のコマンドを入力してもエラーが表示される場合は,以下のコマンドを実行してください。
# rpm --import /usr/share/doc/yum-2.0.3/*GRG-KEY
または,
# rpm --import /usr/share/rhn/RPM-GRG-KEY
ここで,仮にGnuPGがインストールされていない場合は,以下のコマンドを実行してください。
# rpm -Uvh http://download.fedoralegacy.org/redhat9/updates/i386/gnupg-1.2.1-9.i386.rpm
yumのインストール(RedHat9)
インストールに必要なパッケージのインストール及び更新をおこないます。
# rpm -Uvh http://download.fedoralegacy.org/redhat/9/updates/i386/gnupg-1.2.1-9.i386.rpm
yumをインストールします。
# rpm -ivh http://download.fedora.us/fedora/redhat/9/i386/RPMS.stable/yum-2.0.3-0.fdr.1.rh90.noarch.rpm
/etc/yum.confの内容を以下のように変更します。
# See the yum.conf(5) man page for information the syntax of this file,
# including failover setup.
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
exclude=kernel*
[base]
name=Red Hat Linux $releasever - $basearch - Base
baseurl=http://download.fedora.us/fedora/redhat/$releasever/$basearch/yum/os/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever - $basearch - updates
baseurl=http://download.fedora.us/fedora/redhat/$releasever/$basearch/yum/updates/
gpgcheck=1
PGPキーをインポートします。
# rpm --import http://www.fedoralegacy.org/FEDORA-LEGACY-GPG-KEY
yumを実行する。
# yum update
実行した際にエラーが出るようならば,
# rpm --import /usr/share/doc/yum-2.0.3/*GRG-KEY
または,
# rpm --import /usr/share/rhn/RPM-GRG-KEY
を実行し,再度yumを実行してみる。
ここで,仮にGnuPGがインストールされていない場合は,以下のコマンドを実行してください。
# rpm -Uvh http://download.fedoralegacy.org/redhat9/updates/i386/gnupg-1.2.1-9.i386.rpm