Yumでアップデート
赤い帽子ネットワークではアップデートできないから、yumでアップデートする。
全ての作業はrootで!
- まずはgnupgが必要らしい(↓改行せず1行で入力)
# rpm -Uvh []http://download.fedoralegacy.org/redhat/9/updates/i386/[]
gnupg-1.2.1-9.i386.rpm
- 次にyumをインストール(↓改行せず1行で入力)
# rpm -ivh []http://download.fedoralegacy.org/redhat/9/legacy-utils/[]
i386/yum-2.0.5-0.9.2.legacy.noarch.rpm
- /etc/yum.confを書替え
◎念のため、バックアップしてから
# cp /etc/yum.conf /etc/yum.conf.backup
◎以下の内容に書き替える(↓赤字部分は改行せず1行で書く)
[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.fedoralegacy.org/redhat/$releasever/os/[]
$basearch
gpgcheck=1[updates]
name=Red Hat Linux $releasever - $basearch - updates
baseurl=[]http://download.fedoralegacy.org/redhat/$releasever/[]
updates/$basearch
gpgcheck=1 - GPGキーを登録
# rpm --import []http://www.fedoralegacy.org/FEDORA-LEGACY-GPG-KEY[]
# rpm --import []http://www.redhat.com/security/db42a60e.txt[]
- でわ、早速。。。
# yum update
...
IS this OK[y/n] yすごいたくさんのパッケージがアップデートされたよ。