nginxに限らず、最新版のパッケージを探す場合、ここで検索するとディストリビューションやリポジトリごとのバージョンが比較できる。
yum
[CentOS] rpmリポジトリ管理ツール群 リリースしました
みなさんこんにちは。CentOSで標準リポジトリにないパッケージをインストールするため、 rpmforge や dag 、 epel リポジトリをインストールするのですが、まれによくやる作業なので、ついつい手順を忘れがちです。作業するたびにGoogle先生にお伺いをたててリポジトリのURLを探してインストールするのに飽きてきました(メモれよ)。
特に、CentOSの異種バージョンで検証環境を作るのに、わざわざリポジトリファイルを探すのが面倒くさいので、次のような仕様でツールを作ってみました。もしよろしければ、githubからダウンロードして使ってみてください。
- rpmforgeは、rpmファイルをまとめてダウンロードするようにした
- dagとepelは、各々のアーキテクチャに合ったリポジトリファイルを作成するようにした
githubは以下になります。
[ rpmforge rpmファイルダウンローダ - FORGEGET ] https://github.com/nullpopopo/FORGEGET
[ dagリポジトリメンテナンスツール - DAGMAINTE ] https://github.com/nullpopopo/DAGMAINTE
[epelリポジトリメンテナンスツール - EPELMAINTE ] https://github.com/nullpopopo/EPELMAINTE
[CentOS][yum] CentOS 4.7リリースのお知らせ
せっかくこないだカーネルを手動で2.6.9-78.0.1にしたばかりなのに、yumのリポジトリにしっかり転がり込んできてましたよ。(´・ω・`)
というわけで、自宅のサーバは普通にyumでアップデートしました。仕事場のマシンも、明日アップデートしようそうしよう。
■■ 今のカーネルバージョン確認
[oresama@intra1 ~]$ uname -a
Linux intra1.stellarcube.com 2.6.9-67.0.22.EL #1 Wed Jul 23 17:17:45 EDT 2008 i686 i686 i386 GNU/Linux
[oresama@intra1 ~]$ sudo cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-67.0.22.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-67.0.22.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-67.0.22.EL.img
■■ redhat-releaseの確認
[oresama@intra1 ~]$ cat /etc/redhat-release
CentOS release 4.6 (Final)
■■ yumのアップデート確認
[oresama@intra1 ~]$ sudo yum check-update
Loading "fastestmirror" plugin
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
acl.i386 2.2.23-5.4.el4 base
apr-util.i386 0.9.4-22.el4 base
at.i386 3.1.8-82.el4 base
audit.i386 1.0.16-3.el4 base
audit-libs.i386 1.0.16-3.el4 base
authconfig.i386 4.6.10-7.el4 base
autofs.i386 1:4.1.3-234 base
bash.i386 3.0-19.7 base
bind.i386 20:9.2.4-30.el4 base
bind-libs.i386 20:9.2.4-30.el4 base
bind-utils.i386 20:9.2.4-30.el4 base
binutils.i386 2.15.92.0.2-25 base
centos-release.i386 6:4-7 base
comps.i386 2:4.7CENTOS-0.20080805 base
coreutils.i386 5.2.1-31.8.el4 base
cpio.i386 2.5-16.el4 base
cpp.i386 3.4.6-10 base
crash.i386 4.0-5.0.0.1 base
cryptsetup.i386 0.1-6 base
cups-libs.i386 1:1.1.22-0.rc1.9.27 base
device-mapper.i386 1.02.25-2.el4 base
dhclient.i386 7:3.0.1-62.EL4 base
dhcp.i386 7:3.0.1-62.EL4 bas
e
dhcpv6_client.i386 0.10-24_EL4 base
diffutils.i386 2.8.1-12.1.el4 base
diskdumputils.i386 1.4.1-5 base
dmraid.i386 1.0.0.rc14-9_RHEL4_U7. base
e2fsprogs.i386 1.35-12.17.el4 base
e2fsprogs-devel.i386 1.35-12.17.el4 base
file.i386 4.10-5.el4 base
gcc.i386 3.4.6-10 base
glibc.i686 2.3.4-2.41 base
glibc-common.i386 2.3.4-2.41 base
glibc-devel.i386 2.3.4-2.41 base
glibc-headers.i386 2.3.4-2.41 base
glibc-kernheaders.i386 2.4-9.1.103.EL base
gtk2.i386 2.4.13-24.el4 base
hal.i386 0.4.2-8.EL4 base
httpd.i386 2.0.52-41.ent.centos4 base
httpd-suexec.i386 2.0.52-41.ent.centos4 base
hwdata.noarch 0.146.33.EL-11 base
initscripts.i386 7.93.33-1.centos4 base
iproute.i386 2.6.9-4.el4 base
ipsec-tools.i386 0.3.3-7.el4_7 update
iputils.i386 20020927-21.el4 base
isdn4k-utils.i386 3.2-18.p1.5 base
kernel.i686 2.6.9-78.0.1.EL update
kernel-utils.i386 1:2.4-14.1.117 base
krb5-devel.i386 1.3.4-60.el4 base
krb5-libs.i386 1.3.4-60.el4 base
krb5-workstation.i386 1.3.4-60.el4 base
lftp.i386 3.0.6-4.el4 base
libacl.i386 2.2.23-5.4.el4 base
libgcc.i386 3.4.6-10 base
libstdc++.i386 3.4.6-10 base
libtiff.i386  
; 3.6.1-12.el4_7.2 update
libuser.i386 0.52.5-1.el4.3 base
libxml2.i386 2.6.16-12.5 update
libxml2-python.i386 2.6.16-12.5 update
libxslt.i386 1.1.11-1.el4_7.2 update
logrotate.i386 3.7.1-10.RHEL4 base
logwatch.noarch 5.2.2-4.el4 base
lvm2.i386 2.02.37-3.el4 base
make.i386 1:3.80-7.EL4 base
man-pages.noarch 1.67-15.el4 base
mgetty.i386 1.1.31-14.el4 base
mod_ssl.i386 1:2.0.52-41.ent.centos base
module-init-tools.i386 3.1-0.pre5.3.10 base
mysql.i386 4.1.22-2.el4 base
mysql-devel.i386 4.1.22-2.el4 base
net-snmp-libs.i386 5.1.2-13.el4 base
net-tools.i386 1.60-39.el4 base
newt.i386 0.51.6-10.el4 base
nfs-utils.i386 1.0.6-87.EL4 base
nscd.i386 2.3.4-2.41 base
nss_ldap.i386 253-5.el4 base
ntp.i386 4.2.0.a.20040617-8.el4 base
openldap.i386 2.2.13-12.el4 base
openssh.i386 3.9p1-11.el4_7 update
openssh-clients.i386 3.9p1-11.el4_7 update
openssh-server.i386 3.9p1-11.el4_7 update
pam.i386 0.77-66.25 base
pam-devel.i386 0.77-66.25 base
pam_krb5.i386 2.1.17-6.el4 base
parted.i386 1.6.19-22.EL base
popt.i386 1.9.1-26_nonptl base
postfix.i386 2:2.2.10-1.2.1.el4_7 update
procps.i386 3.2.3-8.12
base
python.i386 2.3.4-14.7.el4 base
quota.i386 1:3.12-7.el4 base
rhnlib.noarch 2.1.2-11.el4 base
rpm.i386 4.3.3-26_nonptl base
rpm-build.i386 4.3.3-26_nonptl base
rpm-libs.i386 4.3.3-26_nonptl base
rpm-python.i386 4.3.3-26_nonptl base
rpmdb-CentOS.i386 2:4.7-0.20080805 base
samba.i386 3.0.28-0.el4.9 base
samba-client.i386 3.0.28-0.el4.9 base
samba-common.i386 3.0.28-0.el4.9 base
sed.i386 4.1.2-7.el4 base
setup.noarch 2.5.37-1.7 base
shadow-utils.i386 2:4.0.3-66.RHEL4 base
sos.noarch 1.7-6.6.el4 base
specspo.noarch 9.0.92-3 base
squid.i386 7:2.5.STABLE14-4.el4 base
sysklogd.i386 1.4.1-27.el4 base
sysstat.i386 5.0.5-19.el4 base
system-config-network-tui.noarch 1.3.22.0.EL.4.6-1.el4 base
tcl.i386 8.4.7-4.el4 base
tcsh.i386 6.13-10.el4 base
tzdata.noarch 2008e-1.el4 update
udev.i386 039-10.22.el4 base
unzip.i386 5.51-10.el4 base
up2date.i386 4.7.1-17.el4.centos base
usermode.i386 1.74-2.el4.1 base
util-linux.i386 2.12a-20.el4 base
vixie-cron.i386 4:4.1-50.el4 base
xinetd.i386 2:2.3.13-4.5.el4 base
xorg-x11-Mesa-libGL.i386 6.8.2-1.EL.52 base
xorg-x11-libs.i386 6.8.2-1.EL.52 base
zip.i386 &n
bsp; 2.3-29.EL4 base
■■ yum update
[oresama@intra1 ~]$ sudo yum update
Loading "fastestmirror" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
(中略)
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel i686 2.6.9-78.0.1.EL update 12 M
Updating:
acl i386 2.2.23-5.4.el4 base 59 k
apr-util i386 0.9.4-22.el4 base 51 k
at i386 3.1.8-82.el4 base 54 k
audit i386 1.0.16-3.el4 base 202 k
audit-libs i386 1.0.16-3.el4 base 39 k
authconfig i386 4.6.10-7.el4 base 289 k
autofs i386 1:4.1.3-234 base 291 k
bash i386 3.0-19.7 base 1.7 M
bind i386 20:9.2.4-30.el4 base 582 k
bind-libs i386 20:9.2.4-30.el4 base 568 k
bind-utils i386 20:9.2.4-30.el4 base 142 k
binutils i386 2.15.92.0.2-25 base 2.9 M
centos-release i386 6:4-7 base 22 k
comps i386 2:4.7CENTOS-0.20080805 base 9.5 M
coreutils i386 5.2.1-31.8.el4 base 2.9 M
cpio i386 2.5-16.el4 base 47 k
cpp i386 3.4.6-10 base 1.6 M
crash i386 4.0-5.0.0.1 base 1.4 M
cryptsetup i386 0.1-6 base 441 k
cups-libs i386 1:1.1.22-0.rc1.9.27 base 112 k
device-mapper i386 1.02.25-2.el4 base 564 k
dhclient i386 7:3.0.1-62.EL4 base 226 k
dhcp i386 7:3.0.1-62.EL4 base 565 k
dhcpv6_client i386 0.10-24_EL4 base 71 k
diffutils i386 2.8.1-12.1.el4 base &n
bsp; 204 k
diskdumputils i386 1.4.1-5 base 110 k
dmraid i386 1.0.0.rc14-9_RHEL4_U7.el4 base 692 k
e2fsprogs i386 1.35-12.17.el4 base 776 k
e2fsprogs-devel i386 1.35-12.17.el4 base 485 k
file i386 4.10-5.el4 base 259 k
gcc i386 3.4.6-10 base 4.4 M
glibc i686 2.3.4-2.41 base 6.0 M
glibc-common i386 2.3.4-2.41 base 16 M
glibc-devel i386 2.3.4-2.41 base 1.9 M
glibc-headers i386 2.3.4-2.41 base 588 k
glibc-kernheaders i386 2.4-9.1.103.EL base 696 k
gtk2 i386 2.4.13-24.el4 base 4.3 M
hal i386 0.4.2-8.EL4 base 153 k
httpd i386 2.0.52-41.ent.centos4 base 902 k
httpd-suexec i386 2.0.52-41.ent.centos4 base 30 k
hwdata noarch 0.146.33.EL-11 base 447 k
initscripts i386 7.93.33-1.centos4 base 1.3 M
iproute i386 2.6.9-4.el4 base 683 k
ipsec-tools i386 0.3.3-7.el4_7 update 221 k
iputils i386 20020927-21.el4 base 104 k
isdn4k-utils i386 3.2-18.p1.5 base 3.6 M
kernel-utils i386 1:2.4-14.1.117 base 1.0 M
krb5-devel i386 1.3.4-60.el4 base 825 k
krb5-libs i386 1.3.4-60.el4 base 486 k
krb5-workstation i386 1.3.4-60.el4 base 826 k
lftp i386 3.0.6-4.el4 base 706 k
libacl i386 2.2.23-5.4.el4 base 16 k
libgcc i386 3.4.6-10 base 64 k
libstdc++ i386 3.4.6-10 base 283 k
libtiff i386 3.6.1-12.el4_7.2 upda
te 254 k
libuser i386 0.52.5-1.el4.3 base 326 k
libxml2 i386 2.6.16-12.5 update 621 k
libxml2-python i386 2.6.16-12.5 update 440 k
libxslt i386 1.1.11-1.el4_7.2 update 436 k
logrotate i386 3.7.1-10.RHEL4 base 35 k
logwatch noarch 5.2.2-4.el4 base 133 k
lvm2 i386 2.02.37-3.el4 base 2.1 M
make i386 1:3.80-7.EL4 base 336 k
man-pages noarch 1.67-15.el4 base 3.9 M
mgetty i386 1.1.31-14.el4 base 428 k
mod_ssl i386 1:2.0.52-41.ent.centos4 base 100 k
module-init-tools i386 3.1-0.pre5.3.10 base 356 k
mysql i386 4.1.22-2.el4 base 3.1 M
mysql-devel i386 4.1.22-2.el4 base 2.1 M
net-snmp-libs i386 5.1.2-13.el4 base 1.7 M
net-tools i386 1.60-39.el4 base 341 k
newt i386 0.51.6-10.el4 base 82 k
nfs-utils i386 1.0.6-87.EL4 base 193 k
nscd i386 2.3.4-2.41 base 140 k
nss_ldap i386 253-5.el4 base 1.1 M
ntp i386 4.2.0.a.20040617-8.el4.centos base 1.2 M
openldap i386 2.2.13-12.el4 base 237 k
openssh i386 3.9p1-11.el4_7 update 326 k
openssh-clients i386 3.9p1-11.el4_7 update 349 k
openssh-server i386 3.9p1-11.el4_7 update 212 k
pam i386 0.77-66.25 base 1.9 M
pam-devel i386 0.77-66.25 base 85 k
pam_krb5 i386 2.1.17-6.el4 base 94 k
parted i386 1.6.19-22.EL base 490 k
popt i386 1.9.1-26_nonptl ba
se 60 k
postfix i386 2:2.2.10-1.2.1.el4_7 update 3.0 M
procps i386 3.2.3-8.12 base 189 k
python i386 2.3.4-14.7.el4 base 4.8 M
quota i386 1:3.12-7.el4 base 304 k
rhnlib noarch 2.1.2-11.el4 base 101 k
rpm i386 4.3.3-26_nonptl base 651 k
rpm-build i386 4.3.3-26_nonptl base 459 k
rpm-libs i386 4.3.3-26_nonptl base 784 k
rpm-python i386 4.3.3-26_nonptl base 81 k
rpmdb-CentOS i386 2:4.7-0.20080805 base 29 M
samba i386 3.0.28-0.el4.9 base 16 M
samba-client i386 3.0.28-0.el4.9 base 4.5 M
samba-common i386 3.0.28-0.el4.9 base 7.6 M
sed i386 4.1.2-7.el4 base 167 k
setup noarch 2.5.37-1.7 base 31 k
shadow-utils i386 2:4.0.3-66.RHEL4 base 594 k
sos noarch 1.7-6.6.el4 base 102 k
specspo noarch 9.0.92-3 base 4.3 M
squid i386 7:2.5.STABLE14-4.el4 base 1.1 M
sysklogd i386 1.4.1-27.el4 base 68 k
sysstat i386 5.0.5-19.el4 base 116 k
system-config-network-tui noarch 1.3.22.0.EL.4.6-1.el4 base 1.4 M
tcl i386 8.4.7-4.el4 base 898 k
tcsh i386 6.13-10.el4 base 586 k
tzdata noarch 2008e-1.el4 update 453 k
udev i386 039-10.22.el4 base 843 k
unzip i386 5.51-10.el4 base 142 k
up2date i386 4.7.1-17.el4.centos base 1.8 M
usermode i386 1.74-2.el4.1 base 138 k
util-linux i386 &
nbsp; 2.12a-20.el4 base 1.5 M
vixie-cron i386 4:4.1-50.el4 base 81 k
xinetd i386 2:2.3.13-4.5.el4 base 128 k
xorg-x11-Mesa-libGL i386 6.8.2-1.EL.52 base 388 k
xorg-x11-libs i386 6.8.2-1.EL.52 base 2.7 M
zip i386 2.3-29.EL4 base 114 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 120 Package(s)
Remove 0 Package(s)
Total download size: 192 M
Is this ok [y/N]: y
(後略)
Installed: kernel.i686 0:2.6.9-78.0.1.EL
Updated: acl.i386 0:2.2.23-5.4.el4 apr-util.i386 0:0.9.4-22.el4 at.i386 0:3.1.8-82.el4 audit.i386 0:1.0.16-3.el4 audit-libs.i386 0:1.0.16-3.el4 authconfig.i386 0:4.6.10-7.el4 autofs.i386 1:4.1.3-234 bash.i386 0:3.0-19.7 bind.i386 20:9.2.4-30.el4 bind-libs.i386 20:9.2.4-30.el4 bind-utils.i386 20:9.2.4-30.el4 binutils.i386 0:2.15.92.0.2-25 centos-release.i386 6:4-7 comps.i386 2:4.7CENTOS-0.20080805 coreutils.i386 0:5.2.1-31.8.el4 cpio.i386 0:2.5-16.el4 cpp.i386 0:3.4.6-10 crash.i386 0:4.0-5.0.0.1 cryptsetup.i386 0:0.1-6 cups-libs.i386 1:1.1.22-0.rc1.9.27 device-mapper.i386 0:1.02.25-2.el4 dhclient.i386 7:3.0.1-62.EL4 dhcp.i386 7:3.0.1-62.EL4 dhcpv6_client.i386 0:0.10-24_EL4 diffutils.i386 0:2.8.1-12.1.el4 diskdumputils.i386 0:1.4.1-5 dmraid.i386 0:1.0.0.rc14-9_RHEL4_U7.el4 e2fsprogs.i386 0:1.35-12.17.el4 e2fsprogs-devel.i386 0:1.35-12.17.el4 file.i386 0:4.10-5.el4 gcc.i386 0:3.4.6-10 glibc.i686 0:2.3.4-2.41 glibc-common.i386 0:2.3.4-2.41 glibc-devel.i386 0:2.3.4-2.41 glibc-headers.i386 0:2.3.4-2.41 glibc-kernheaders.i386 0:2.4-9.1.103.EL gtk2.i386 0:2.4.13-24.el4 hal.i386 0:0.4.2-8.EL4 httpd.i386 0:2.0.52-41.ent.centos4 httpd-suexec.i386 0:2.0.52-41.ent.centos4 hwdata.noarch 0:0.146.33.EL-11 initscripts.i386 0:7.93.33-1.centos4 iproute.i386 0:2.6.9-4.el4 ipsec-tools.i386 0:0.3.3-7.el4_7 iputils.i386 0:20020927-21.el4 isdn4k-utils.i386 0:3.2-18.p1.5 kernel-utils.i386 1:2.4-14.1.117 krb5-devel.i386 0:1.3.4-60.el4 krb5-libs.i386 0:1.3.4-60.el4 krb5-workstation.i386 0:1.3.4-60.el4 lftp.i386 0:3.0.6-4.el4 libacl.i386 0:2.2.23-5.4.el4 libgcc.i386 0:3.4.6-10 libstdc++.i386 0:3.4.6-10 libtiff.i386 0:3.6.1-12.el4_7.2 libuser.i386 0:0.52.5-1.el4.3 libxml2.i386 0:2.6.16-12.5 libxml2-python.i386 0:2.6.16-12.5 libxslt.i386 0:1.1.11-1.el4_7.2 logrotate.i386 0:3.7.1-10.RHEL4 logwatch.noarch 0:5.2.2-4.el4 lvm2.i386 0:2.02.37-3.el4 make.i386 1:3.80-7.EL4 man-pages.noarch 0:1.67-15.el4 mgetty.i386 0:1.1.31-14.el4 mod_ssl.i386 1:2.0.52-41.ent.centos4 module-init-tools.i386 0:3.1-0.pre5.3.10 mysql.i386 0:4.1.22-2.el4 mysql-devel.i386 0:4.1.22-2.el4 net-snmp-libs.i386 0:5.1.2-13.el4 net-tools.i386 0:1.60-39.el4 newt.i386 0:0.51.6-10.el4 nfs-utils.i386 0:1.0.6-87.EL4 nscd.i386 0:2.3.4-2.41 nss_ldap.i386 0:253-5.el4 ntp.i386 0:4.2.0.a.20040617-8.el4.centos openldap.i386 0:2.2.13-12.el4 openssh.i386 0:3.9p1-11.el4_7 openssh-clients.i386 0:3.9p1-11.el4_7 openssh-server.i386 0:3.9p1-11.el4_7 pam.i386 0:0.77-66.25 pam-devel.i386 0:0.77-66.25 pam_krb5.i386 0:2.1.17-6.el4 parted.i386 0:1.6.19-22.EL popt.i386 0:1.9.1-26_nonptl postfix.i386 2:2.2.10-1.2.1.el4_7 procps.i386 0:3.2.3-8.12 python.i386 0:2.3.4-14.7.el4 quota.i386 1:3.12-7.el4 rhnlib.noarch 0:2.1.2-11.el4 rpm.i386 0:4.3.3-26_nonptl rpm-build.i386 0:4.3.3-26_nonptl rpm-libs.i386 0:4.3.3-26_nonptl rpm-python.i386 0:4.3.3-26_nonptl rpmdb-CentOS.i386 2:4.7-0.20080805 samba.i386 0:3.0.28-0.el4.9 samba-client.i386 0:3.0.28-0.el4.9 samba-common.i386 0:3.0.28-0.el4.9 sed.i386 0:4.1.2-7.el4 setup.noarch 0:2.5.37-1.7 shadow-utils.i386 2:4.0.3-66.RHEL4 sos.noarch 0:1.7-6.6.el4 specspo.noarch 0:9.0.92-3 squid.i386 7:2.5.STABLE14-4.el4 sysklogd.i386 0:1.4.1-27.el4 sysstat.i386 0:5.0.5-19.el4 system-config-network-tui.noarch 0:1.3.22.0.EL.4.6-1.el4 tcl.i386 0:8.4.7-4.el4 tcsh.i386 0:6.13-10.el4 tzdata.noarch 0:2008e-1.el4 udev.i386 0:039-10.22.el4 unzip.i386 0:5.51-10.el4 up2date.i386 0:4.7.1-17.el4.centos usermode.i386 0:1.74-2.el4.1 util-linux.i386 0:2.12a-20.el4 vixie-cron.i386 4:4.1-50.el4 xinetd.i386 2:2.3.13-4.5.el4 xorg-x11-Mesa-libGL.i386 0:6.8.2-1.EL.52 xorg-x11-libs.i386 0:6.8.2-1.EL.52 zip.i386 0:2.3-29.EL4
Complete!
■■ grub.confの確認
[oresama@intra1 ~]$ sudo cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-78.0.1.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.0.1.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-78.0.1.EL.img
title CentOS (2.6.9-67.0.22.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-67.0.22.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-67.0.22.EL.img
■■ redhat-releaseの確認
[oresama@intra1 ~]$ cat /etc/redhat-release
CentOS release 4.7 (Final)
■■ 再起動
[oresama@intra1 ~]$ sudo /sbin/reboot
Broadcast message from root (pts/0) (Mon Sep 15 23:21:51 2008):
The system is going down for reboot NOW!
■■ 再起動後のカーネルバージョン確認
[oresama@intra1 ~]$ uname -a
Linux intra1.stellarcube.com 2.6.9-78.0.1.EL #1 Tue Aug 5 10:49:42 EDT 2008 i686 i686 i386 GNU/Linux
[shasta@intra1 ~]$ sudo cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0
)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-78.0.1.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-78.0.1.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-78.0.1.EL.img
title CentOS (2.6.9-67.0.22.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-67.0.22.EL ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.9-67.0.22.EL.img
以上、終了。
ね、簡単でしょ?