タグ・アーカイブ: yum

せっかくこないだカーネルを手動で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

以上、終了。
ね、簡単でしょ?

nullpopopoが動いている使える.netのVPSサーバをアップデートしました。
アップデート後は以下のとおりです。

$ uname -a
Linux hydra.bizcube.info 2.6.9-023stab046.2-smp #1 SMP Mon Dec 10 15:04:55 MSK 2007 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/redhat-release
CentOS release 5.2 (Final)

しかし、カーネルとphpはexcludeしています。

$ grep exclude /etc/yum.conf
exclude=kernel* httpd* php*

とりあえずweb/mail/db/dnsとも正常稼動しているのですが、sudoコマンドを叩くと

$ sudo ls
audit_log_user_command(): Connection refused    ← ココ
anon_ftp  cgi-bin  dat       error_docs   httpdocs              httpsdocs  pd       src         subdomains  web_users
bin       conf     deny.lst  favicon.ico  httpdocs.orig.tar.gz  logs       private  statistics  tmp

というように、「audit_log_user_command」関数でエラーが出てしまったのです。

sudo audit_log_user_command でググってみたらココ

Name        : sudo
Product     : Fedora 8
Version     : 1.6.9p4
Release     : 3.fc8
URL         : http://www.courtesan.com/sudo/
(中略)

--------------------------------------------------------------------------------
ChangeLog:

* Mon Jan  7 2008 Peter Vrabec <[EMAIL PROTECTED]> 1.6.9p4-3
- fix complains about audit_log_user_command(): Connection
  refused (#401201)
--------------------------------------------------------------------------------

と書いてあるので、 RPM Search から sudo-1.6.9p4 で検索し、ココからたどったリンクから sudo-1.6.9p4-6.fc8.i386.rpm をダウンロード。

$ wget ftp://ftp.univie.ac.at/systems/linux/fedora/updates/8/i386/sudo-1.6.9p4-6.fc8.i386.rpm

そしていざインストールをしようとしたら

$ rpm --test -Uvh sudo-1.6.9p4-6.fc8.i386.rpm
警告: sudo-1.6.9p4-6.fc8.i386.rpm: ヘッダ V3 DSA signature: NOKEY, key ID 4f2a6fd2
エラー: 依存性の欠如:
        libcap.so.1 は sudo-1.6.9p4-6.fc8.i386 に必要とされています

依存関係のエラーが出てしまった!

では libcap.so.1 が何のパッケージに含まれているか?そしてそもそも libcap.so.1 は今までインストールされていなかったのか?と思い、調べてみました。

$ locate libcap.so.1
/lib64/libcap.so.1
/lib64/libcap.so.1.10

libcap.so.1 はインストールされています。では、どのパッケージに含まれているかを見てみましょう。

$ rpm -qf /lib64/libcap.so.1
libcap-1.10-26

$ rpm -ql libcap
/lib64/libcap.so.1
/lib64/libcap.so.1.10
/usr/sbin/execcap
/usr/sbin/getpcaps
/usr/sbin/setpcaps
/usr/sbin/sucap
/usr/share/doc/libcap-1.10
/usr/share/doc/libcap-1.10/capability.notes
/usr/share/doc/libcap-1.10/capfaq-0.2.txt

しかし、libcap パッケージに依存するパッケージは山のようにあります。

GConf2 ImageMagick ImageMagick-perl MAKEDEV SSHTerm SysVinit alsa-lib apr apr-devel apr-util apr-util-devel audit-libs-python authconfig autoconf autoconf213 automake automake17 avahi avahi-glib awstats bind bind-libs bind-utils caching-nameserver cairo chkfontpath coreutils courier-imap cpan2rpm cracklib cryptsetup-luks curl curl-devel cvs cyrus-sasl cyrus-sasl-devel dbus dbus-glib dbus-python device-mapper dhclient distcache distcache-devel docbook-dtds docbook-style-xsl drweb-base drweb-daemon drweb-qmail drweb-updater e2fsprogs e2fsprogs-devel e2fsprogs-libs esound fetchmail findutils finger-server fontconfig fontconfig-devel gcc-java gd gd-devel gettext gettext-devel ghostscript ghostscript-fonts gnome-keyring gnome-mount gnome-vfs2 gnupg gtk2 hal hicolor-icon-theme httpd httpd-devel hwdata initscripts kbd krb5-devel krb5-libs libX11-devel libXdmcp-devel libXft libXpm-devel libbonoboui libc-client libgcj libgcj-devel libglade2 libgnome libgnomecanvas libgnomeui libgsf libnotify librsvg2 libselinux libselinux-devel libselinux-python libsemanage libtool libuser libwmf libwnck libxml2-devel libxml2-python libxslt-devel logrotate lsof lynx m2crypto mailman man mcstrans mesa-libGL mesa-libGL-devel mod_perl mod_python mod_ssl module-init-tools munin-node mysql mysql-server net-snmp net-snmp-devel net-snmp-libs net-snmp-utils net-tools newt newt-devel nmap notification-daemon nscd ntp ntsysv openjade openldap openldap-devel opensp openssh openssh-clients openssh-server openssl openssl-devel openssl-perl openssl097a pam pam-devel pango passivetex passwd pciutils perl-Authen-SASL perl-DBD-MySQL perl-GSSAPI perl-IO-Socket-SSL perl-Net-Jabber perl-Net-SSLeay perl-Net-XMPP perl-SOAP-Lite perl-XML-Stream php php-cli php-imap php-mysql php-sqlite2 php5-ioncube-loader pm-utils policycoreutils portmap postgresql-libs psa psa-api psa-api-rpc psa-appvault-advancedpoll psa-appvault-anyinventory psa-appvault-autoindex psa-appvault-b2evolution psa-appvault-bbclone psa-appvault-brim psa-appvault-coppermine psa-appvault-cslh psa-appvault-docfaq psa-appvault-drupal psa-appvault-egroupware psa-appvault-gallery psa-appvault-geeklog psa-appvault-gtchat psa-appvault-joomla psa-appvault-mambo psa-appvault-mantis psa-appvault-mediawiki psa-appvault-merchant psa-appvault-moodle psa-appvault-myorgbook psa-appvault-noahclass psa-appvault-openbiblio psa-appvault-oscommerce psa-appvault-owl psa-appvault-phpads psa-appvault-phpbb psa-appvault-phpbook psa-appvault-phpbugtracker psa-appvault-phpdig psa-appvault-phpmoney psa-appvault-phpmyfamily psa-appvault-phpmyvisites psa-appvault-phpsurveyor psa-appvault-phpwebsite psa-appvault-phpwiki psa-appvault-plog psa-appvault-pmachinefree psa-appvault-postnuke psa-appvault-serendipity psa-appvault-siteframe psa-appvault-smf psa-appvault-tellme psa-appvault-tikiwiki psa-appvault-tutos psa-appvault-typo3 psa-appvault-uebimiau psa-appvault-webcalendar psa-appvault-webshopmanager psa-appvault-wordpress psa-appvault-xoops psa-appvault-xrms psa-autoinstaller psa-awstats-configurator psa-backup-manager psa-backup-manager-vz psa-courier-imap-add psa-fileserver psa-firewall psa-horde psa-hotfix3 psa-hotfix4 psa-imp psa-ingo psa-kav psa-kronolith psa-libpam-plesk psa-locale-ja-JP psa-mailman-configurator psa-manual-custom-skin-guide psa-migration-manager psa-mimp psa-mnemo psa-mod-fcgid-configurator psa-mod_fcgid psa-passwd psa-php5-configurator psa-proftpd psa-proftpd-xinetd psa-qmail psa-qmail-rblsmtpd psa-rubyrails-configurator psa-sbm3 psa-spamassassin psa-turba psa-updates psa-vpn psa-watchdog psmisc python python-devel python-elementtree python-iniparse python-sqlite python-urlgrabber quota rhpl rpm rpm-build rpm-devel rpm-libs rpm-python ruby ruby-actionmailer ruby-actionpack ruby-actionwebservice ruby-activerecord ruby-activesupport ruby-devel ruby-fcgi ruby-irb ruby-libs ruby-mysql ruby-rails ruby-rake samba samba-client samba-common samba-swat sb-publish screen sendmail sendmail-cf sendmail-devel sendmail-doc setuptool sgml-common shadow-utils spamassassin squid stunnel sudo sw-libxml2-python sysklogd sysstat talk-server tar tcpdump tcsh tet
ex tetex-latex tmpwatch udev urw-fonts usermode util-linux vim-enhanced vim-minimal vixie-cron vzdev vzdummy-glibc w3m webalizer wget which xinetd xml-common xmltex xmlto xorg-x11-proto-devel xorg-x11-xfs yum yum-downloadonly yum-fastestmirror yum-metadata-parser yum-utils

というわけで、sudo本体やlibcapをアップデートするよりは、sudoのバージョンを下げるのが懸命といえます。

またまた RPM Search からパッケージを探します。ここでは、元のバージョンより古いsudoのパッケージを持ってきます。今日アップデートしたバージョンのsudoはココで確認します。

$ grep sudo /var/log/yum.log
Jul 01 08:48:45 Updated: sudo.x86_64 1.6.8p12-12.el5

$ wget ftp://ftp.uni-bayreuth.de/pub/redhat.com/fedora/linux/core/updates/3/x86_64/sudo-1.6.7p5-30.3.x86_64.rpm
(nullpopopoが動いているサーバは64bitマシンなのでこのパッケージをもってきました。普通の32bitマシンの場合、i386なパッケージをもってきましょう)

そして、一度sudoをアンインストールしてから、今もってきたバージョンのsudoをインストールします。

$ sudo yum remove sudo
audit_log_user_command(): Connection refused
Loading "downloadonly" plugin
Loading "fastestmirror" plugin
Setting up Remove Process
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * updates: ftp.nara.wide.ad.jp
 * addons: ftp.nara.wide.ad.jp
 * extras: ftp.nara.wide.ad.jp
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Excluding Packages in global exclude list
Finished
Resolving Dependencies
--> Running transaction check
---> Package sudo.x86_64 0:1.6.8p12-12.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 sudo                    x86_64     1.6.8p12-12.el5  installed         472 k

Transaction Summary
=============================================================================
Install      0 Package(s)
Update       0 Package(s)
Remove       1 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing   : sudo                         ######################### [1/1]
warning: /etc/sudoers saved as /etc/sudoers.rpmsave

Removed: sudo.x86_64 0:1.6.8p12-12.el5
Complete!

そしてインストールです。

# rpm --test -ivh sudo-1.6.7p5-30.3.x86_64.rpm
warning: sudo-1.6.7p5-30.3.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]

# rpm -ivh sudo-1.6.7p5-30.3.x86_64.rpm
warning: sudo-1.6.7p5-30.3.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:sudo                   ########################################### [100%]

そして、sudoコマンドでエラーが出ないことを確認します。

$ sudo yum check-update
Loading "downloadonly" plugin
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * updates: ftp.nara.wide.ad.jp
 * addons: ftp.nara.wide.ad.jp
 * extras: ftp.nara.wide.ad.jp
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Excluding Packages in global exclude list
Finished

sudo.x86_64                              1.6.8p12-12.el5        base

また、今後sudoのアップデートがされないように、excludeします。

$ cp -p /etc/yum.conf /etc/yum.conf.20080701
$ sudo vi /etc/yum.conf

ここを
exclude=kernel* httpd* php*

こうする
exclude=kernel* httpd* php* sudo*

再度yum check-updateします。

$ sudo yum check-update
Loading "downloadonly" plugin
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * updates: ftp.nara.wide.ad.jp
 * addons: ftp.nara.wide.ad.jp
 * extras: ftp.nara.wide.ad.jp
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Excluding Packages in global exclude list
Finished

sudoパッケージがexcludeされました。

以上で、sudoパッケージのダウングレードができました。
ね、簡単でしょ?