- 追加された行はこの色です。
- 削除された行はこの色です。
- aptやyumによるupdate は削除されています。
いまどき RHL 7.3 もないとは思いますが、必要なこともあるんですよね。
* up2dateを止める [#v51be89f]
[root@localhost root]# /etc/rc.d/init.d/rhnsd stop
/usr/sbin/setup を実行して、"System services" から rhnsd のチェックを外しましょう。
&ref(rhl73-setup.png);
* apt [#a16a1966]
RedHat 7.3 はもうサポートは終了しているので、apt で更新するようです。どれくらい新しいものに追随しているのかはわかりませんが、更新分は入れないよりは入れたほうがいいでしょう。
[root@localhost root]# wget http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/apt/apt-0.5.5cnc5-fr0.rh73.2.i386.rpm
...
[root@localhost root]# rpm -ivh apt-0.5.5cnc5-fr0.rh73.2.i386.rpm
Preparing... ########################################### [100%]
1:apt ########################################### [100%]
まずはリストを更新します。
[root@localhost root]# apt-get update
Get:1 http://ayo.freshrpms.net redhat/7.3/i386 release [1178B]
Fetched 1178B in 1s (872B/s)
Get:1 http://ayo.freshrpms.net redhat/7.3/i386/os pkglist [1229kB]
Get:2 http://ayo.freshrpms.net redhat/7.3/i386/os release [144B]
Get:3 http://ayo.freshrpms.net redhat/7.3/i386/updates pkglist [525kB]
Get:4 http://ayo.freshrpms.net redhat/7.3/i386/updates release [157B]
Get:5 http://ayo.freshrpms.net redhat/7.3/i386/freshrpms pkglist [138kB]
Get:6 http://ayo.freshrpms.net redhat/7.3/i386/freshrpms release [161B]
Get:7 http://ayo.freshrpms.net redhat/7.3/i386/os srclist [148kB]
Get:8 http://ayo.freshrpms.net redhat/7.3/i386/updates srclist [33.8kB]
Get:9 http://ayo.freshrpms.net redhat/7.3/i386/freshrpms srclist [34.9kB]
Fetched 2109kB in 12s (174kB/s)
Reading Package Lists... Done
Building Dependency Tree... Done
パッケージを更新。
[root@localhost root]# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
Canna Canna-libs LPRng XFree86 XFree86-100dpi-fonts XFree86-75dpi-fonts
...
134 packages upgraded, 0 newly installed, 0 removed and 7 not upgraded.
Need to get 175MB of archives.
After unpacking 15.4MB of additional disk space will be used.
Do you want to continue? [Y/n]
enter を叩くと、rpm をダウンロードしてインストールしていきます。ダウンロードしたファイルは /var/cache/apt/archives/ に溜まるようです。他にも同じような環境を作りたいときは、そのマシンに持っていって rpm -Uvh してもいいですね。
* yum [#pa0164f4]
apt だけじゃなく、yum もあるみたいです。
[root@localhost root]# wget http://ftp.freshrpms.net/pub/freshrpms/redhat/7.3/yum/yum-1.0.3-3.rh.fr.i386.rpm
...
[root@localhost root]# rpm -ivh yum-1.0.3-3.rh.fr.i386.rpm
Preparing... ########################################### [100%]
1:rpm ########################################### [100%]
yum も update でリストを更新します。結構時間が掛かります。
[root@localhost root]# yum update
Gathering package information from servers
Getting headers from: Red Hat Linux 7.3 - i386 - freshrpms
Getting headers from: Red Hat Linux 7.3 - i386 - os
Getting headers from: Red Hat Linux 7.3 - i386 - updates
Finding updated packages
Downloading needed headers
...
Resolving dependencies
.Dependencies resolved
I will do the following:
[install: kernel.i686]
[update: kernel-source.i386]
...
I will install/upgrade these to satisfy the dependencies:
[deps: perl-suidperl.i386]
Is this ok [y/N]: y
Getting kernel-source-2.4.20-28.7.i386.rpm
...
Calculating available disk space - this could take a bit
kernel-source 100 % done
...
Kernel Updated/Installed, checking for bootloader
Grub found - making this kernel the default
Installed: kernel.i686
Updated: ...
Transaction(s) Complete
リストの更新のつもりが、依存関係の解決のためにいくつか rpm が更新されてしまいました。 rpm の更新は upgrade ですが、もう更新するものはないようです。
[root@localhost root]# yum upgrade
Gathering package information from servers
Getting headers from: Red Hat Linux 7.3 - i386 - freshrpms
Getting headers from: Red Hat Linux 7.3 - i386 - os
Getting headers from: Red Hat Linux 7.3 - i386 - updates
Finding updated packages
Downloading needed headers
getting /var/cache/yum/os/headers/hpijs-0-1.0.2-8.i386.hdr
Finding obsoleted packages
No Upgrades available.
更新がないとは言ってもこのサイトにはないというだけなので、/etc/yum.conf での設定によっては他のサイトで更新を配っている場合があるかもしれません。
* The Fedora Legacy Project [#j4023da7]
http://www.fedoralegacy.org/ でも古い RedHat 用の rpm を配布しているようです。こちらのほうが上に挙げたサイトよりも信頼できるかもしれません。update の方法は同じです。
----
#comment