HOME / Distributions / CentOS-FAQ / 3.x
YUM/Up2date を使って実行する前に、GPGキーをインポートすることを推奨します(GPGキーをインポートしなかった時は、アップデートの際、警告メッセージが表示さ れます)。
rpm --import http://mirror.centos.org/centos-3/3/os/i386/RPM-GPG-KEY-CentOS-3
(disc 1 に入っているので、それをコピーする方がさらに安全です。その場合には、次のようにします。)
rpm --import /mnt/cdrom/RPM-GPG-KEY-CentOS-3
(as root) will install ('import') the CentOS 3 package signing key for RPM to use to confirm a validly signed package.
Please note that it is safer to import the copy of the key from the install ISO media. It is in the root directory of each ISO, as RPM-GPG-KEY, and the same key is present on disc 1 as RPM-GPG-KEY-CentOS-3.
The reason this is safer is that a CD is of course an immutable media, and when one verifies ISO MD5SUMs, one is implicitly also verifying the key.
RIKEN=理化学研究所を設定したいときは、 /etc/sysconfig/rhn/sources より 33-38行目をテキスト・エディタなどで書き変えてください。具体的には、以下の行をコメント(#)し、国内ミラー[下記は RIKEN の設定例]の記述を追加(挿入)します。
#yum centos-3-base http://mirror.centos.org/centos/3/os/i386/
#yum centos-3-addons http://mirror.centos.org/centos/3/addons/i386/
#yum centos-3-updates http://mirror.centos.org/centos/3/updates/i386/
#yum centos-3-extras http://mirror.centos.org/centos/3/extras/i386/
#yum centos-3-extras http://mirror.centos.org/centos/3/testing/i386/
#yum centos-3-centos+ http://mirror.centos.org/centos/3/centosplus/i386/
yum centos-3-base http://ftp.riken.jp/Linux/centos/3/os/i386/
yum centos-3-addons http://ftp.riken.jp/Linux/centos/3/addons/i386/
yum centos-3-updates http://ftp.riken.jp/Linux/centos/3/updates/i386/
yum centos-3-extras http://ftp.riken.jp/Linux/centos/3/extras/i386/
/etc/yum.conf を次のとおり書き換えると、日本国内のミラーサーバー(Riken)が利用できます。
[base]
name=CentOS-$releasever - Base
baseurl=http://ftp.riken.jp/Linux/centos/$releasever/os/$basearch/
ftp://ftp.riken.jp/Linux/centos/$releasever/os/$basearch/
gpgcheck=1
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://ftp.riken.jp/Linux/centos/$releasever/updates/$basearch/
ftp://ftp.riken.jp/Linux/centos/$releasever/updates/$basearch/
gpgcheck=1
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://ftp.riken.jp/Linux/centos/$releasever/addons/$basearch/
ftp://ftp.riken.jp/Linux/centos/$releasever/addons/$basearch/
gpgcheck=1
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://ftp.riken.jp/Linux/centos/$releasever/extras/$basearch/
ftp://ftp.riken.jp/Linux/centos/$releasever/extras/$basearch/
gpgcheck=1
設定を変更し上書き保存したら、コンソールから次のコマンドを実行します。
# yum list update (yum check-update コマンドでも同じ)
ヘッダ情報がダウンロードされるので、しばらく時間がかかります。そして、
# yum update
これで全てのパッケージが更新され、システムは最新の状態となります。
YUMI は、YUM のグラフィカルなパッケージ管理ツールです。
http://dag.wieers.com/packages/yumi/
より yumi-2.0.7-2.1.el3.dag.noarch.rpm を入手し、
# rpm -ivh yumi-2.0.7-2.1.el3.dag.noarch.rpm
警告: yumi-2.0.7-2.1.el3.dag.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:yumi ########################################### [100%]
以上でインストールは完了します。起動させるにはコマンドラインより、
yumi
と入力します。
コマンドラインからrootで up2date -i synaptic を実行するだけで、必要なパッケージが追加されます。アドオン パッケージの追加やインストール済みパッケージを削除するためのツールとして利用できます。
ただし、アップデート(セキュリティ アップデート)の目的で使うことはできません。その理由は APT や Synaptic が YUMリポジトリーに対応しないからです。(最新リリースの CentOS 4 は APT に対応済みです。)
# up2date -i synaptic
Fetching rpm headers...
########################################
Name Version Rel
----------------------------------------------------------
synaptic 0.47 0.fdr.3.rh90 i386
Testing package set / solving RPM inter-dependencies...
########################################
synaptic-0.47-0.fdr.3.rh90. ########################## Done.
apt-0.5.5cnc6-0.fdr.8.rh90. ########################## Done.
Preparing ########################################### [100%]
Installing...
1:apt ########################################### [100%]
2:synaptic ########################################### [100%]
The following packages were added to your selection to satisfy dependencies:
Name Version Release
--------------------------------------------------------------
apt 0.5.5cnc6 0.fdr.8.rh90
dag.wieers.com より、RHEL 3 用のアドオン・パッケージが提供されています。
# rpm -ivh apt-0.5.15cnc6-4.2.el3.rf.i386.rpm
# rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
# apt-get update
APT のグラフィカルなツール Synaptic を使いたいときは、追加インストールします。
# apt-get install synaptic
詳しくは Installation and Configuration を参照してください。
Up2date を利用するには /etc/sysconfig/rhn/sources にいずれかを追加します。
[APT リポジトリーの追加]
### Dag RPM Repository for Red Hat Enterprise Linux
apt DAG-RPM-Repository http://apt.sw.be redhat/el3/en/i386 dag
[YUM リポジトリーの追加]
### Dag RPM Repository for Red Hat Enterprise Linux
yum DAG-RPM-Repository http://apt.sw.be/redhat/el3/en/$ARCH/dag
アドオン・パッケージを提供する代表的なリポジトリーは、現在(2005.05) Dag RPM Repository や ATrpms です。これらのリポジトリーには、特に RHEL 3 / 4 向けのパッケージが用意されています。
アドオン・パッケージの利用は、APT / Synaptic を使って管理する方が問題が発生しません。YUM / Up2date の conf ファイルに追加して運用した場合は、 update の際知らずに余計なパッケージを取り込んでしまう恐れが出てくるので、注意を要します。
Fedora.us は Red Hat Linux 9 用しか用意されておらず、今ではメンテナンスもされていないので、必要とするパッケージがここでしか見つからないといった特別な事情でもない限り、 Fedora.us は アドオン用リポジトリーとして推奨できません。
/etc/sysconfig/rhn/sources には fedora.us の YUMリポジトリーが予め用意されています。その31行目にある次の記述のコメント(#)を外して、上書き保存します。
yum fedora-9-i386-stable http://download.fedora.us/fedora/redhat/9/i386/yum/stable
GPG キーをインポートします。
# rpm --import http://www.fedora.us/FEDORA-GPG-KEY
fedora.us 以外のリポジトリーを利用したいときは、この例に習って記述を追加します。
上記手順に従って Fedora.us を利用すると CDライティング ツール K3b が次のコマンドでインストール可能となります。
# up2date -i k3b
Fetching Obsoletes list for channel: fedora-9-i386-stable...
Fetching Obsoletes list for channel: centos-3-base...
Fetching Obsoletes list for channel: centos-3-addons...
Fetching Obsoletes list for channel: centos-3-updates...
Fetching Obsoletes list for channel: centos-3-extras...
Fetching rpm headers...
########################################
Name Version Rel
----------------------------------------------------------
k3b 0.11.14 0.fdr.2.rh90 i386
Testing package set / solving RPM inter-dependencies...
########################################
k3b-0.11.14-0.fdr.2.rh90.i3 ########################## Done.
flac-1.1.0-0.fdr.16.rh90.i3 ########################## Done.
id3lib-3.8.3-0.fdr.9.rh90.i ########################## Done.
Preparing ########################################### [100%]
Installing...
1:id3lib ########################################### [100%]
2:flac ########################################### [100%]
3:k3b ########################################### [100%]
The following packages were added to your selection to satisfy dependencies:
Name Version Release
--------------------------------------------------------------
flac 1.1.0 0.fdr.16.rh90
id3lib 3.8.3 0.fdr.9.rh90
http://www.k3b.org/ プロジェクトより、Red Hat Linux 9 用の APT ラインを追加できます。この設定を行うことで、最新の安定版が利用可能となります。
apt - /etc/apt/sources.list.d ディレクトリーに追加しなくてはいけないときは、適当な名前 (k3b.list など) の設定ファイルを新規作成し、次の内容を記述します。
# Name: k3b.org Repository
# URL: http://www.k3b.org/
### k3b.org Repository for Red Hat Linux 9
rpm http://rpms.xcyb.org/redhat/9 i686 stable bleeding
rpm-src http://rpms.xcyb.org/redhat/9 i686 stable bleeding
設定ファイルの作成作業が完了したら、次のコマンドを実行します。
# apt-get update
# apt-get install k3b k3b-i18n cdrdao
http://www.k3b.org/ プロジェクトより、Red Hat Linux 9 用の YUM ラインを追加してインストールすることもできます。その場合、まず Dag より次の3つのパッケージを入手しインストールします。
# rpm -ivh id3lib_3.8.3-7.1.el3.dag_i386.rpm libmad_0.15.1b-3.1.el3.dag_i386.rpm lame_3.96.1-2.1.el3.rf_i386.rpm
そして、yum - /etc/yum.conf に YUM ラインを追加します。
[xcyb-stable]
name=Red Hat Linux 9 ( xcyborg / stable )
baseurl=http://rpms.xcyb.org/redhat/9/stable/
[xcyb-bleeding]
name=Red Hat Linux 9 ( xcyborg / bleeding )
baseurl=http://rpms.xcyb.org/redhat/9/bleeding/
設定ファイルの作成作業が完了したら、次のコマンドを実行します。
# yum list update
# yum install k3b k3b-i18n cdrdao
これは、バージョン 1.7.7 (mozilla-1.7.7-1.1.3.4.centos3.i386.rpm) 以降のパッケージのバグ(不具合)*1で す。メニューが英語で表示されてしまうようになりますが、日本語のウェブサイトを表示させること は問題なく可能です。
どうしても Mozilla のアプリケーションの表示(メニューなど)が日本語でなくては困る場合には、Up2date Network の更新対象パッケージから除外するよう(「無視したパッケージ」)に指定することで、一時的に回避できます。将来正常な更新版がリリースされた時には、直 ちにアップデートを実行するようにしてください。
別の対処法として、Mozilla の公式サイトより配布されいる Mozilla 1.7.7 用の Japanese Language Pack を利用することもできます。作業手順については、関連項目? を見てください。
標準インストールでは、OpenOffice.org がインストールされません。インストールCD #disc-3 より追加インストールします。パッケージ管理の観点からいえば、このディストリビューションのために特に用意されたパッケージをインストールするべきで す。
$ cd /mnt/cdrom/RedHat/RPMS
# rpm -ivh openoffice.org-1.1.0-16.13.EL.i386.rpm openoffice.org-i18n-1.1.0-16.13.EL.i386.rpm
openoffice.org-libs-1.1.0-16.13.EL.i386.rpm openoffice.org-style-gnome-1.1.0-16.9.EL.i386.rpm
Preparing... ########################################### [100%]
1:openoffice.org-libs ########################################### [ 25%]
2:openoffice.org-i18n ########################################### [ 50%]
3:openoffice.org-style-gn########################################### [ 75%]
4:openoffice.org ########################################### [100%]
すでに更新版がリリースされているので、インターネットに接続されている環境では、インストール後直ちにアップデートを行ってくださ い。
実際には、インストールCD に含まれる OpenOffice.org のバージョンが 1.1.0 とやや古いため、OpenOffice.org 公式サイトより最新バージョン 1.1.4 日本語版を入手してインストールした方が実用的かもしれません。ただし、RPM/YUM でのパッケージ管理の対象からは外れることになります。
http://www.centos.org/modules/smartfaq/faq.php?faqid=19
1) This command is optional, but recommended. Optionally Execute:
# yum clean
2) This step install the CentOS package signing key. Execute:
# rpm --import http://mirror.centos.org/centos-3/RPM-GPG-KEY-CentOS-3
3) This step installs the CentOS specific -release file; this obsoletes the package whitebox-release. (The whitebox-release package is automatically removed.). Execute:
# rpm -Uvh http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/centos-release-3-4.2.i386.rpm
4) This step installs the CentOS version of yum and a suitable yum.conf file. Execute:
# rpm -Uvh http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/yum-2.0.8-1.centos.7.noarch.rpm
5) Optionally Execute:
# yum list update
# yum update
6) Using up2date after the migration
Once the above mentioned Migration has run through you will need to replace the WhiteBox up2date with the CentOS up2date systems (they both use different setups).
# rpm -e up2date firstboot
# yum install up2date
# rpm -e up2date up2date-gnome rhn-applet firstboot
# yum install up2date up2date-gnome rhn-applet
(In most cases firstboot can be left out since its not going to be run anymore)
まず次のパッケージを入手しインストールします。
#rpm -Uvh centos-release-3-5.3.i386.rpm centos-yumconf-1-11.noarch.rpm
そして、次のコマンドを実行してください。
# yum upgrade
# rpm -ivh http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/centos-yumcache-3.1-0.20050105.3.noarch.rpm
続けて次のコマンドを実行します。
# rpm -Fvh http://mirror.centos.org/centos/3.4/os/i386/RedHat/RPMS/centos-release-3-4.2.i386.rpm
そして次のコマンドでアップグレードが完了します。
# yum update
RPMコマンドを使用せず、次の方法でもアップグレードが可能です。
# yum install centos-yumcache
# yum update centos-release
# yum update
アップグレードするとbindのサービスがoffになる。また、named.confが新しいものになる。 named.conf.rpmsaveが古いnamed.conf
アップグレードの詳細については、CentOS Announcements : CentOS 3.4 - i386 release の Upgrade Notes の箇所を参照してください。
/etc/yum.conf ファイルを次のとおり書き換えます。
WRONG: baseurl=http://mirror.caosity.org/centos-3/3.1/
WRONG: baseurl=http://mirror.caosity.org/centos-3/3.3/
RIGHT: baseurl=http://mirror.caosity.org/centos-3/$releasever/
そして、
# yum update
を実行します。
http://wwwold.caosity.org/index.php?option=news&task=viewarticle&sid=34
今後も CentOS を継続して利用するには、CentOS 3.3 以上のバージョンにアップグレードトする必要があります。
With the release of CentOS 3.4 the decision has been taken to remove CentOS 3.1 from the mirrors. This will save approximately 18 GB of space and make room for new architectures and CentOS 4.0 .
Now 3.1 is a symlink to 3.3 so that even if they have hardcoded yum.conf (dont !!) they will now get the 3.3 tree, which will make little difference as the updates were all in the 3.1 tree anyway.
配布元のベンダーは、一般に配布されている Linux kernel 2.4 に手を加えて、独自の改良を行い、これを Enterprise Kernel として組み込んでいます。その主な特徴は、次のページで比較表を載せて紹介されています。
The Enterprise Kernel: A Linux 2.4 core with Linux 2.6 features
このページによれば、安定した運用を実現するために kernel 2.6 の特徴の多くが Enterprise Kernel
2.4 にバックポート(移植)されているとの説明があります。
CentOS に組み込まれている kernel 2.4 は、そのクローンということになります。