暁なIT備忘録

AKATSUKI Information Technology Memorandum.

Linux 導入後の初期設定:システム最新化(yum)関係

Tags: ,

サーバ用途であれば、どの update がどのサービスに影響を与えるか未知数と考え、リスクマネジメントの観点から自動 update を無効とするのがスタンダードだと思っています。

昔は RPM や apt or yum や ports(FreeBSD) は環境依存するからエンジニアとしての知識経験積みたければ、全部 Source から make しろ!と言われたものです…主に当方の上司(師匠)から(笑)
CentOS-4 まではその通りにしていたんですけどねー管理の工数など考えると時代は yum かなーと。
でも結局、RPM(yum)が用意されていない環境を手がけると立ち往生してしまうのは確かな話なので、一通りライブラリに関する make の知識などは付けておくに越したことはありませんね。

このページでは CentOS/Scientific Linux で全体的に必要な作業量が変わってきます。

#######################################
##### ケース1:CentOS-6.0 の場合 #####
#######################################

■■■■■ システム最新化(yum)関係 ■■■■■

■fastestmirror で経路の自動選択(既に設定済みっぽいので不要)

> CentOS-6.0 では以下の RPM は導入済みの為、新たにインストールは不要。
> # yum -y install yum-plugin-fastestmirror

# grep mirrorlist /etc/yum.repos.d/*
/etc/yum.repos.d/CentOS-Base.repo:# If the mirrorlist= does not work for you, as a fall back you can try the
/etc/yum.repos.d/CentOS-Base.repo:mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
/etc/yum.repos.d/CentOS-Base.repo:mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
/etc/yum.repos.d/CentOS-Base.repo:mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
/etc/yum.repos.d/CentOS-Base.repo:mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
/etc/yum.repos.d/CentOS-Base.repo:mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib

# rcsdiff /etc/yum/pluginconf.d/fastestmirror.conf
===================================================================
RCS file: /etc/yum/pluginconf.d/RCS/fastestmirror.conf,v
retrieving revision 1.1
diff -r1.1 /etc/yum/pluginconf.d/fastestmirror.conf
8c8
< hostfilepath=timedhosts.txt
---
> hostfilepath=/var/cache/yum/timedhosts.txt

作業:fastestmirror で経路の自動選択

■自動 update の抑止

#RHEL6 から自動 update のやり方がかわっているので、下記サービスは存在しない。

> # chkconfig yum-updatesd off
> # chkconfig –list yum-updatesd
> yum-updatesd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
>
> # service yum-updatesd stop
> yum-updates を停止中: [ OK ]

■直近最新化

# yum check-update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
 * base: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp

NetworkManager.x86_64                                        1:0.8.1-5.el6_0.1                                   updates
NetworkManager-glib.x86_64                                   1:0.8.1-5.el6_0.1                                   updates
NetworkManager-gnome.x86_64                                  1:0.8.1-5.el6_0.1                                   updates
apr.x86_64                                                   1.3.9-3.el6_0.1                                     updates
apr-util.x86_64                                              1.3.9-3.el6_0.1                                     updates
at.x86_64                                                    3.1.10-43.el6                                       updates
autofs.x86_64                                                1:5.0.5-23.el6_0.1                                  updates
bind-libs.x86_64                                             32:9.7.0-5.P2.el6_0.1                               updates
bind-utils.x86_64                                            32:9.7.0-5.P2.el6_0.1                               updates
bzip2.x86_64                                                 1.0.5-7.el6_0                                       updates
bzip2-devel.x86_64                                           1.0.5-7.el6_0                                       updates
bzip2-libs.x86_64                                            1.0.5-7.el6_0                                       updates
cifs-utils.x86_64                                            4.4-5.el6_0.2                                       updates
compat-openldap.x86_64                                       2.4.19_2.3.43-15.el6_0.2                            updates
cracklib.x86_64                                              2.8.16-4.el6                                        updates
cracklib-dicts.x86_64                                        2.8.16-4.el6                                        updates
cracklib-python.x86_64                                       2.8.16-4.el6                                        updates
cups-libs.x86_64                                             1:1.4.2-35.el6_0.1                                  updates
cvs.x86_64                                                   1.11.23-11.el6_0.1                                  updates
dbus.x86_64                                                  1:1.2.24-4.el6_0                                    updates
dbus-devel.x86_64                                            1:1.2.24-4.el6_0                                    updates
dbus-libs.x86_64                                             1:1.2.24-4.el6_0                                    updates
dbus-x11.x86_64                                              1:1.2.24-4.el6_0                                    updates
device-mapper.x86_64                                         1.02.53-8.el6_0.4                                   updates
device-mapper-event.x86_64                                   1.02.53-8.el6_0.4                                   updates
device-mapper-event-libs.x86_64                              1.02.53-8.el6_0.4                                   updates
device-mapper-libs.x86_64                                    1.02.53-8.el6_0.4                                   updates
dhclient.x86_64                                              12:4.1.1-12.P1.el6_0.4                              updates
dracut.noarch                                                004-33.2.el6_0                                      updates
dracut-kernel.noarch                                         004-33.2.el6_0                                      updates
file.x86_64                                                  5.04-6.el6                                          updates
file-libs.x86_64                                             5.04-6.el6                                          updates
freetype.x86_64                                              2.3.11-6.el6_0.2                                    updates
freetype-devel.x86_64                                        2.3.11-6.el6_0.2                                    updates
gdm.x86_64                                                   1:2.30.4-21.el6_0.1                                 updates
gdm-libs.x86_64                                              1:2.30.4-21.el6_0.1                                 updates
gdm-plugin-fingerprint.x86_64                                1:2.30.4-21.el6_0.1                                 updates
gdm-user-switch-applet.x86_64                                1:2.30.4-21.el6_0.1                                 updates
git.x86_64                                                   1.7.1-2.el6_0.1                                     updates
glibc.i686                                                   2.12-1.7.el6_0.5                                    updates
glibc.x86_64                                                 2.12-1.7.el6_0.5                                    updates
glibc-common.x86_64                                          2.12-1.7.el6_0.5                                    updates
glibc-devel.x86_64                                           2.12-1.7.el6_0.5                                    updates
glibc-headers.x86_64                                         2.12-1.7.el6_0.5                                    updates
gpxe-roms-qemu.noarch                                        0.9.7-6.3.el6_0.1                                   updates
initscripts.x86_64                                           9.03.17-1.el6_0.1                                   updates
java-1.6.0-openjdk.x86_64                                    1:1.6.0.0-1.36.b17.el6_0                            updates
java-1.6.0-openjdk-devel.x86_64                              1:1.6.0.0-1.36.b17.el6_0                            updates
kernel.x86_64                                                2.6.32-71.29.1.el6                                  updates
kernel-devel.x86_64                                          2.6.32-71.29.1.el6                                  updates
kernel-firmware.noarch                                       2.6.32-71.29.1.el6                                  updates
kernel-headers.x86_64                                        2.6.32-71.29.1.el6                                  updates
kpartx.x86_64                                                0.4.9-31.el6_0.3                                    updates
krb5-devel.x86_64                                            1.8.2-3.el6_0.7                                     updates
krb5-libs.x86_64                                             1.8.2-3.el6_0.7                                     updates
libblkid.x86_64                                              2.17.2-6.el6_0.1                                    updates
libcap-ng.x86_64                                             0.6.4-3.el6_0.1                                     updates
libcap-ng-devel.x86_64                                       0.6.4-3.el6_0.1                                     updates
libcgroup.x86_64                                             0.36.1-6.el6_0.1                                    updates
libcgroup-devel.x86_64                                       0.36.1-6.el6_0.1                                    updates
libnl.x86_64                                                 1.1-12.el6_0.1                                      updates
libsmbclient.x86_64                                          3.5.4-68.el6_0.2                                    updates
libtiff.x86_64                                               3.9.4-1.el6_0.3                                     updates
libuser.x86_64                                               0.56.13-4.el6_0.1                                   updates
libuser-python.x86_64                                        0.56.13-4.el6_0.1                                   updates
libuuid.x86_64                                               2.17.2-6.el6_0.1                                    updates
libvirt-client.x86_64                                        0.8.1-27.el6_0.6                                    updates
libvirt-devel.x86_64                                         0.8.1-27.el6_0.6                                    updates
libvirt-python.x86_64                                        0.8.1-27.el6_0.6                                    updates
logrotate.x86_64                                             3.7.8-12.el6_0.1                                    updates
lohit-devanagari-fonts.noarch                                2.4.3-7.el6                                         updates
lvm2.x86_64                                                  2.02.72-8.el6_0.4                                   updates
lvm2-libs.x86_64                                             2.02.72-8.el6_0.4                                   updates
man-pages-ja.noarch                                          20100115-3.el6                                      updates
mysql.x86_64                                                 5.1.52-1.el6_0.1                                    updates
mysql-devel.x86_64                                           5.1.52-1.el6_0.1                                    updates
mysql-libs.x86_64                                            5.1.52-1.el6_0.1                                    updates
nss-softokn.x86_64                                           3.12.8-1.el6_0                                      updates
nss-softokn-devel.x86_64                                     3.12.8-1.el6_0                                      updates
nss-softokn-freebl.i686                                      3.12.8-1.el6_0                                      updates
nss-softokn-freebl.x86_64                                    3.12.8-1.el6_0                                      updates
nss-util.x86_64                                              3.12.8-1.el6_0                                      updates
nss-util-devel.x86_64                                        3.12.8-1.el6_0                                      updates
openldap.x86_64                                              2.4.19-15.el6_0.2                                   updates
openldap-devel.x86_64                                        2.4.19-15.el6_0.2                                   updates
openssh.x86_64                                               5.3p1-20.el6_0.3                                    updates
openssh-askpass.x86_64                                       5.3p1-20.el6_0.3                                    updates
openssh-clients.x86_64                                       5.3p1-20.el6_0.3                                    updates
openssh-server.x86_64                                        5.3p1-20.el6_0.3                                    updates
openssl.x86_64                                               1.0.0-4.el6_0.2                                     updates
openssl-devel.x86_64                                         1.0.0-4.el6_0.2                                     updates
pam.x86_64                                                   1.1.1-4.el6_0.1                                     updates
pam-devel.x86_64                                             1.1.1-4.el6_0.1                                     updates
pango.x86_64                                                 1.28.1-3.el6_0.5                                    updates
pango-devel.x86_64                                           1.28.1-3.el6_0.5                                    updates
perf.noarch                                                  2.6.32-71.29.1.el6                                  updates
perl-Git.noarch                                              1.7.1-2.el6_0.1                                     updates
phonon-backend-gstreamer.x86_64                              1:4.6.2-17.el6                                      updates
pixman.x86_64                                                0.18.4-1.el6_0.1                                    updates
pixman-devel.x86_64                                          0.18.4-1.el6_0.1                                    updates
policycoreutils.x86_64                                       2.0.83-19.8.el6_0                                   updates
polkit.x86_64                                                0.96-2.el6_0.1                                      updates
polkit-desktop-policy.noarch                                 0.96-2.el6_0.1                                      updates
polkit-devel.x86_64                                          0.96-2.el6_0.1                                      updates
polkit-docs.x86_64                                           0.96-2.el6_0.1                                      updates
postfix.x86_64                                               2:2.6.6-2.1.el6_0                                   updates
postgresql.x86_64                                            8.4.7-1.el6_0.1                                     updates
postgresql-devel.x86_64                                      8.4.7-1.el6_0.1                                     updates
postgresql-libs.x86_64                                       8.4.7-1.el6_0.1                                     updates
psmisc.x86_64                                                22.6-15.el6_0.1                                     updates
python.x86_64                                                2.6.5-3.el6_0.2                                     updates
python-devel.x86_64                                          2.6.5-3.el6_0.2                                     updates
python-libs.x86_64                                           2.6.5-3.el6_0.2                                     updates
python-pycurl.x86_64                                         7.19.0-8.el6                                        updates
qemu-img.x86_64                                              2:0.12.1.2-2.113.el6_0.8                            updates
qemu-kvm.x86_64                                              2:0.12.1.2-2.113.el6_0.8                            updates
qemu-kvm-tools.x86_64                                        2:0.12.1.2-2.113.el6_0.8                            updates
qt.x86_64                                                    1:4.6.2-17.el6                                      updates
qt-sqlite.x86_64                                             1:4.6.2-17.el6                                      updates
qt-x11.x86_64                                                1:4.6.2-17.el6                                      updates
rsync.x86_64                                                 3.0.6-5.el6_0.1                                     updates
samba-client.x86_64                                          3.5.4-68.el6_0.2                                    updates
samba-common.x86_64                                          3.5.4-68.el6_0.2                                    updates
samba-winbind-clients.x86_64                                 3.5.4-68.el6_0.2                                    updates
scsi-target-utils.x86_64                                     1.0.4-3.el6_0.1                                     updates
selinux-policy.noarch                                        3.7.19-54.el6_0.5                                   updates
selinux-policy-targeted.noarch                               3.7.19-54.el6_0.5                                   updates
strace.x86_64                                                4.5.19-1.10.el6                                     updates
subversion.x86_64                                            1.6.11-2.el6_0.3                                    updates
sysstat.x86_64                                               9.0.4-12.el6_0.1                                    updates
system-config-firewall.noarch                                1.2.27-3.el6_0.2                                    updates
system-config-firewall-base.noarch                           1.2.27-3.el6_0.2                                    updates
system-config-firewall-tui.noarch                            1.2.27-3.el6_0.2                                    updates
system-config-users.noarch                                   1.2.104-1.el6_0.3                                   updates
tcsh.x86_64                                                  6.17-12.el6                                         updates
tzdata.noarch                                                2011g-1.el6                                         updates
tzdata-java.noarch                                           2011g-1.el6                                         updates
upstart.x86_64                                               0.6.5-6.1.el6_0.1                                   updates
util-linux-ng.x86_64                                         2.17.2-6.el6_0.1                                    updates
vim-common.x86_64                                            2:7.2.411-1.6.el6                                   updates
vim-enhanced.x86_64                                          2:7.2.411-1.6.el6                                   updates
vim-minimal.x86_64                                           2:7.2.411-1.6.el6                                   updates
vte.x86_64                                                   0.25.1-6.el6                                        updates
xorg-x11-drv-qxl.x86_64                                      0.0.12-2.1.el6_0.1                                  updates
xorg-x11-drv-wacom.x86_64                                    0.10.5-6.el6_0.2                                    updates
xorg-x11-server-Xorg.x86_64                                  1.7.7-26.el6_0.3                                    updates
xorg-x11-server-common.x86_64                                1.7.7-26.el6_0.3                                    updates
xorg-x11-server-utils.x86_64                                 7.4-15.el6_0.2                                      updates

結果:yum check-update

# yum -y update

約148パッケージ以上で約203MBと膨大なので、結果は省略。

作業:yum update

■必要パッケージのインストール

好みで適当に。
システム全体で、現時点での必須は特にありません。

■不要パッケージのアンインストール

こちらも適宜。

■yum 用リポジトリ追加

□RPMforge

# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm --import RPM-GPG-KEY.dag.txt
# rm -f RPM-GPG-KEY.dag.txt

# vi /etc/yum.repos.d/rpmforge.repo
=====
[rpmforge]
name=RPMforge RPM repository for Red Hat Enterprise Linux
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el6/en/$basearch/rpmforge/
gpgcheck=1
enabled=0
=====

作業:RPMforge リポジトリ追加

RPMforge を利用する場合のコマンド例

# yum --enablerepo=rpmforge install [パッケージ名]

□EPEL(Fedora Project)

# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
# rpm --import RPM-GPG-KEY-EPEL-6
# rm -f RPM-GPG-KEY-EPEL-6

# vi /etc/yum.repos.d/epel.repo
=====
[epel]
name=EPEL RPM Repository for Red Hat Enterprise Linux
baseurl=http://ftp.riken.jp/Linux/fedora/epel/6/$basearch/
gpgcheck=1
enabled=0
=====

作業:EPEL リポジトリ追加

EPEL を利用する場合のコマンド例

# yum --enablerepo=epel install [パッケージ名]

#################################################
##### ケース2:Scientific Linux-6.1 の場合 #####
#################################################

■fastestmirror で経路の自動選択

# rcsdiff -r1.1 /etc/yum.repos.d/sl.repo
===================================================================
RCS file: /etc/yum.repos.d/RCS/sl.repo,v
retrieving revision 1.1
diff -r1.1 /etc/yum.repos.d/sl.repo
7c7
< #mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6.txt
---
> mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6.txt

# rcsdiff -r1.1 /etc/yum.repos.d/sl-other.repo
===================================================================
RCS file: /etc/yum.repos.d/RCS/sl-other.repo,v
retrieving revision 1.1
diff -r1.1 /etc/yum.repos.d/sl-other.repo
7c7
< #mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-fastbugs-6.txt
---
> mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-fastbugs-6.txt

# yum -y install yum-plugin-fastestmirror
sl                                                                                               | 3.2 kB     00:00
sl/primary_db                                                                                    | 4.0 MB     00:19
sl-security                                                                                      | 1.9 kB     00:00
sl-security/primary_db                                                                           | 1.1 MB     00:06
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-fastestmirror.noarch 0:1.1.30-6.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                                  Arch                   Version                       Repository          Size
========================================================================================================================
Installing:
 yum-plugin-fastestmirror                 noarch                 1.1.30-6.el6                  sl                  25 k

Transaction Summary
========================================================================================================================
Install       1 Package(s)

Total download size: 25 k
Installed size: 53 k
Downloading Packages:
yum-plugin-fastestmirror-1.1.30-6.el6.noarch.rpm                                                 |  25 kB     00:00
警告: rpmts_HdrFromFdno: ヘッダ V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl
Importing GPG key 0x192A7D7D:
 Userid : Scientific Linux (RPM signing key for Scientific Linux) 
 Package: sl-release-6.1-2.x86_64 (@anaconda-ScientificLinux-201107271550.x86_64)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-sl
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson
Importing GPG key 0x82FD17B2:
 Userid : Troy Dawson (Spiky Hair Hawaiian Shirts) 
 Package: sl-release-6.1-2.x86_64 (@anaconda-ScientificLinux-201107271550.x86_64)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-dawson
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : yum-plugin-fastestmirror-1.1.30-6.el6.noarch                                                         1/1

Installed:
  yum-plugin-fastestmirror.noarch 0:1.1.30-6.el6

Complete!

# yum list | head
Loaded plugins: fastestmirror
Determining fastest mirrors
 * sl: ftp.riken.jp
 * sl-security: ftp.scientificlinux.org
Installed Packages
... 以下略

作業:fastestmirror で経路の自動選択

■自動 update の抑止

これをやっておけば、特に /etc/cron.daily/yum-autoupdate をいじる必要が無くなります。

# rcsdiff -r1.1 /etc/sysconfig/yum-autoupdate
===================================================================
RCS file: /etc/sysconfig/RCS/yum-autoupdate,v
retrieving revision 1.1
diff -r1.1 /etc/sysconfig/yum-autoupdate
7c7
< ENABLED="true"
---
> ENABLED="false"

作業:自動 update の抑止

■直近最新化

実施時期がリリース直後ということもあり、それなりに少なめでした。

# yum check-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * sl: ftp.riken.jp
 * sl-security: ftp.scientificlinux.org

apr.x86_64                                                1.3.9-3.el6_1.2                                    sl-security
bind-libs.x86_64                                          32:9.7.3-2.el6_1.P3.2                              sl-security
bind-utils.x86_64                                         32:9.7.3-2.el6_1.P3.2                              sl-security
curl.x86_64                                               7.19.7-26.el6_1.1                                  sl-security
freetype.x86_64                                           2.3.11-6.el6_1.6                                   sl-security
freetype-devel.x86_64                                     2.3.11-6.el6_1.6                                   sl-security
java-1.6.0-openjdk.x86_64                                 1:1.6.0.0-1.39.1.9.8.el6_1                         sl-security
java-1.6.0-openjdk-devel.x86_64                           1:1.6.0.0-1.39.1.9.8.el6_1                         sl-security
kernel.x86_64                                             2.6.32-131.6.1.el6                                 sl-security
kernel-devel.x86_64                                       2.6.32-131.6.1.el6                                 sl-security
kernel-firmware.noarch                                    2.6.32-131.6.1.el6                                 sl-security
kernel-headers.x86_64                                     2.6.32-131.6.1.el6                                 sl-security
krb5-devel.x86_64                                         1.9-9.el6_1.1                                      sl-security
krb5-libs.x86_64                                          1.9-9.el6_1.1                                      sl-security
libcurl.x86_64                                            7.19.7-26.el6_1.1                                  sl-security
libcurl-devel.x86_64                                      7.19.7-26.el6_1.1                                  sl-security
libpng.x86_64                                             2:1.2.46-1.el6_1                                   sl-security
libpng-devel.x86_64                                       2:1.2.46-1.el6_1                                   sl-security
libsndfile.x86_64                                         1.0.20-3.el6_1.1                                   sl-security
libsoup.x86_64                                            2.28.2-1.el6_1.1                                   sl-security
libsoup-devel.x86_64                                      2.28.2-1.el6_1.1                                   sl-security
perf.x86_64                                               2.6.32-131.6.1.el6                                 sl-security
postfix.x86_64                                            2:2.6.6-2.2.el6_1                                  sl-security
selinux-policy.noarch                                     3.7.19-93.el6_1.2                                  sl-security
selinux-policy-targeted.noarch                            3.7.19-93.el6_1.2                                  sl-security
subversion.x86_64                                         1.6.11-2.el6_1.4                                   sl-security
system-config-firewall-base.noarch                        1.2.27-3.el6_1.3                                   sl-security
system-config-firewall-tui.noarch                         1.2.27-3.el6_1.3                                   sl-security
systemtap.x86_64                                          1.4-6.el6_1.2                                      sl-security
systemtap-runtime.x86_64                                  1.4-6.el6_1.2                                      sl-security

結果:yum check-update

# yum -y update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * sl: ftp.riken.jp
 * sl-security: ftp.scientificlinux.org
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package apr.x86_64 0:1.3.9-3.el6 will be updated
---> Package apr.x86_64 0:1.3.9-3.el6_1.2 will be an update
---> Package bind-libs.x86_64 32:9.7.3-2.el6 will be updated
---> Package bind-libs.x86_64 32:9.7.3-2.el6_1.P3.2 will be an update
---> Package bind-utils.x86_64 32:9.7.3-2.el6 will be updated
---> Package bind-utils.x86_64 32:9.7.3-2.el6_1.P3.2 will be an update
---> Package curl.x86_64 0:7.19.7-26.el6 will be updated
---> Package curl.x86_64 0:7.19.7-26.el6_1.1 will be an update
---> Package freetype.x86_64 0:2.3.11-6.el6_0.2 will be updated
---> Package freetype.x86_64 0:2.3.11-6.el6_1.6 will be an update
---> Package freetype-devel.x86_64 0:2.3.11-6.el6_0.2 will be updated
---> Package freetype-devel.x86_64 0:2.3.11-6.el6_1.6 will be an update
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.39.1.9.7.el6 will be updated
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.39.1.9.8.el6_1 will be an update
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.39.1.9.7.el6 will be updated
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.39.1.9.8.el6_1 will be an update
---> Package kernel.x86_64 0:2.6.32-131.6.1.el6 will be installed
---> Package kernel-devel.x86_64 0:2.6.32-131.6.1.el6 will be installed
---> Package kernel-firmware.noarch 0:2.6.32-131.0.15.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-131.6.1.el6 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-131.0.15.el6 will be updated
---> Package kernel-headers.x86_64 0:2.6.32-131.6.1.el6 will be an update
---> Package krb5-devel.x86_64 0:1.9-9.el6 will be updated
---> Package krb5-devel.x86_64 0:1.9-9.el6_1.1 will be an update
---> Package krb5-libs.x86_64 0:1.9-9.el6 will be updated
---> Package krb5-libs.x86_64 0:1.9-9.el6_1.1 will be an update
---> Package libcurl.x86_64 0:7.19.7-26.el6 will be updated
---> Package libcurl.x86_64 0:7.19.7-26.el6_1.1 will be an update
---> Package libcurl-devel.x86_64 0:7.19.7-26.el6 will be updated
---> Package libcurl-devel.x86_64 0:7.19.7-26.el6_1.1 will be an update
---> Package libpng.x86_64 2:1.2.44-1.el6 will be updated
---> Package libpng.x86_64 2:1.2.46-1.el6_1 will be an update
---> Package libpng-devel.x86_64 2:1.2.44-1.el6 will be updated
---> Package libpng-devel.x86_64 2:1.2.46-1.el6_1 will be an update
---> Package libsndfile.x86_64 0:1.0.20-3.el6 will be updated
---> Package libsndfile.x86_64 0:1.0.20-3.el6_1.1 will be an update
---> Package libsoup.x86_64 0:2.28.2-1.el6 will be updated
---> Package libsoup.x86_64 0:2.28.2-1.el6_1.1 will be an update
---> Package libsoup-devel.x86_64 0:2.28.2-1.el6 will be updated
---> Package libsoup-devel.x86_64 0:2.28.2-1.el6_1.1 will be an update
---> Package perf.x86_64 0:2.6.32-131.0.15.el6 will be updated
---> Package perf.x86_64 0:2.6.32-131.6.1.el6 will be an update
---> Package postfix.x86_64 2:2.6.6-2.1.el6_0 will be updated
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be an update
---> Package selinux-policy.noarch 0:3.7.19-93.el6 will be updated
---> Package selinux-policy.noarch 0:3.7.19-93.el6_1.2 will be an update
---> Package selinux-policy-targeted.noarch 0:3.7.19-93.el6 will be updated
---> Package selinux-policy-targeted.noarch 0:3.7.19-93.el6_1.2 will be an update
---> Package subversion.x86_64 0:1.6.11-2.el6_0.3 will be updated
---> Package subversion.x86_64 0:1.6.11-2.el6_1.4 will be an update
---> Package system-config-firewall-base.noarch 0:1.2.27-3.el6_0.2 will be updated
---> Package system-config-firewall-base.noarch 0:1.2.27-3.el6_1.3 will be an update
---> Package system-config-firewall-tui.noarch 0:1.2.27-3.el6_0.2 will be updated
---> Package system-config-firewall-tui.noarch 0:1.2.27-3.el6_1.3 will be an update
---> Package systemtap.x86_64 0:1.4-6.el6 will be updated
---> Package systemtap.x86_64 0:1.4-6.el6_1.2 will be an update
---> Package systemtap-runtime.x86_64 0:1.4-6.el6 will be updated
---> Package systemtap-runtime.x86_64 0:1.4-6.el6_1.2 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                              Arch            Version                                Repository            Size
========================================================================================================================
Installing:
 kernel                               x86_64          2.6.32-131.6.1.el6                     sl-security           23 M
 kernel-devel                         x86_64          2.6.32-131.6.1.el6                     sl-security          6.9 M
Updating:
 apr                                  x86_64          1.3.9-3.el6_1.2                        sl-security          122 k
 bind-libs                            x86_64          32:9.7.3-2.el6_1.P3.2                  sl-security          838 k
 bind-utils                           x86_64          32:9.7.3-2.el6_1.P3.2                  sl-security          176 k
 curl                                 x86_64          7.19.7-26.el6_1.1                      sl-security          190 k
 freetype                             x86_64          2.3.11-6.el6_1.6                       sl-security          357 k
 freetype-devel                       x86_64          2.3.11-6.el6_1.6                       sl-security          363 k
 java-1.6.0-openjdk                   x86_64          1:1.6.0.0-1.39.1.9.8.el6_1             sl-security           25 M
 java-1.6.0-openjdk-devel             x86_64          1:1.6.0.0-1.39.1.9.8.el6_1             sl-security          8.5 M
 kernel-firmware                      noarch          2.6.32-131.6.1.el6                     sl-security          2.5 M
 kernel-headers                       x86_64          2.6.32-131.6.1.el6                     sl-security          1.3 M
 krb5-devel                           x86_64          1.9-9.el6_1.1                          sl-security          1.2 M
 krb5-libs                            x86_64          1.9-9.el6_1.1                          sl-security          705 k
 libcurl                              x86_64          7.19.7-26.el6_1.1                      sl-security          161 k
 libcurl-devel                        x86_64          7.19.7-26.el6_1.1                      sl-security          241 k
 libpng                               x86_64          2:1.2.46-1.el6_1                       sl-security          180 k
 libpng-devel                         x86_64          2:1.2.46-1.el6_1                       sl-security          111 k
 libsndfile                           x86_64          1.0.20-3.el6_1.1                       sl-security          222 k
 libsoup                              x86_64          2.28.2-1.el6_1.1                       sl-security          161 k
 libsoup-devel                        x86_64          2.28.2-1.el6_1.1                       sl-security          183 k
 perf                                 x86_64          2.6.32-131.6.1.el6                     sl-security          992 k
 postfix                              x86_64          2:2.6.6-2.2.el6_1                      sl-security          2.0 M
 selinux-policy                       noarch          3.7.19-93.el6_1.2                      sl-security          739 k
 selinux-policy-targeted              noarch          3.7.19-93.el6_1.2                      sl-security          2.4 M
 subversion                           x86_64          1.6.11-2.el6_1.4                       sl-security          2.3 M
 system-config-firewall-base          noarch          1.2.27-3.el6_1.3                       sl-security          417 k
 system-config-firewall-tui           noarch          1.2.27-3.el6_1.3                       sl-security           36 k
 systemtap                            x86_64          1.4-6.el6_1.2                          sl-security          2.8 M
 systemtap-runtime                    x86_64          1.4-6.el6_1.2                          sl-security           88 k

Transaction Summary
========================================================================================================================
Install       2 Package(s)
Upgrade      28 Package(s)

Total download size: 85 M
Downloading Packages:
(1/30): apr-1.3.9-3.el6_1.2.x86_64.rpm                                                           | 122 kB     00:01
(2/30): bind-libs-9.7.3-2.el6_1.P3.2.x86_64.rpm                                                  | 838 kB     00:05
(3/30): bind-utils-9.7.3-2.el6_1.P3.2.x86_64.rpm                                                 | 176 kB     00:01
(4/30): curl-7.19.7-26.el6_1.1.x86_64.rpm                                                        | 190 kB     00:01
(5/30): freetype-2.3.11-6.el6_1.6.x86_64.rpm                                                     | 357 kB     00:03
(6/30): freetype-devel-2.3.11-6.el6_1.6.x86_64.rpm                                               | 363 kB     00:03
(7/30): java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.x86_64.rpm                                   |  25 MB     02:15
(8/30): java-1.6.0-openjdk-devel-1.6.0.0-1.39.1.9.8.el6_1.x86_64.rpm                             | 8.5 MB     00:43
(9/30): kernel-2.6.32-131.6.1.el6.x86_64.rpm                                                     |  23 MB     01:56
(10/30): kernel-devel-2.6.32-131.6.1.el6.x86_64.rpm                                              | 6.9 MB     00:35
(11/30): kernel-firmware-2.6.32-131.6.1.el6.noarch.rpm                                           | 2.5 MB     00:13
(12/30): kernel-headers-2.6.32-131.6.1.el6.x86_64.rpm                                            | 1.3 MB     00:08
(13/30): krb5-devel-1.9-9.el6_1.1.x86_64.rpm                                                     | 1.2 MB     00:06
(14/30): krb5-libs-1.9-9.el6_1.1.x86_64.rpm                                                      | 705 kB     00:04
(15/30): libcurl-7.19.7-26.el6_1.1.x86_64.rpm                                                    | 161 kB     00:01
(16/30): libcurl-devel-7.19.7-26.el6_1.1.x86_64.rpm                                              | 241 kB     00:02
(17/30): libpng-1.2.46-1.el6_1.x86_64.rpm                                                        | 180 kB     00:01
(18/30): libpng-devel-1.2.46-1.el6_1.x86_64.rpm                                                  | 111 kB     00:01
(19/30): libsndfile-1.0.20-3.el6_1.1.x86_64.rpm                                                  | 222 kB     00:02
(20/30): libsoup-2.28.2-1.el6_1.1.x86_64.rpm                                                     | 161 kB     00:01
(21/30): libsoup-devel-2.28.2-1.el6_1.1.x86_64.rpm                                               | 183 kB     00:01
(22/30): perf-2.6.32-131.6.1.el6.x86_64.rpm                                                      | 992 kB     00:07
(23/30): postfix-2.6.6-2.2.el6_1.x86_64.rpm                                                      | 2.0 MB     00:11
(24/30): selinux-policy-3.7.19-93.el6_1.2.noarch.rpm                                             | 739 kB     00:05
(25/30): selinux-policy-targeted-3.7.19-93.el6_1.2.noarch.rpm                                    | 2.4 MB     00:14
(26/30): subversion-1.6.11-2.el6_1.4.x86_64.rpm                                                  | 2.3 MB     00:12
(27/30): system-config-firewall-base-1.2.27-3.el6_1.3.noarch.rpm                                 | 417 kB     00:02
(28/30): system-config-firewall-tui-1.2.27-3.el6_1.3.noarch.rpm                                  |  36 kB     00:00
(29/30): systemtap-1.4-6.el6_1.2.x86_64.rpm                                                      | 2.8 MB     00:17
(30/30): systemtap-runtime-1.4-6.el6_1.2.x86_64.rpm                                              |  88 kB     00:02
------------------------------------------------------------------------------------------------------------------------
Total                                                                                   182 kB/s |  85 MB     07:55
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : krb5-libs-1.9-9.el6_1.1.x86_64                                                                      1/58
  Updating   : libcurl-7.19.7-26.el6_1.1.x86_64                                                                    2/58
  Updating   : 2:libpng-1.2.46-1.el6_1.x86_64                                                                      3/58
  Updating   : freetype-2.3.11-6.el6_1.6.x86_64                                                                    4/58
  Updating   : 1:java-1.6.0-openjdk-1.6.0.0-1.39.1.9.8.el6_1.x86_64                                                5/58
  Updating   : 32:bind-libs-9.7.3-2.el6_1.P3.2.x86_64                                                              6/58
  Updating   : kernel-firmware-2.6.32-131.6.1.el6.noarch                                                           7/58
  Installing : kernel-2.6.32-131.6.1.el6.x86_64                                                                    8/58
  Updating   : systemtap-runtime-1.4-6.el6_1.2.x86_64                                                              9/58
  Updating   : apr-1.3.9-3.el6_1.2.x86_64                                                                         10/58
  Updating   : system-config-firewall-base-1.2.27-3.el6_1.3.noarch                                                11/58
  Updating   : selinux-policy-3.7.19-93.el6_1.2.noarch                                                            12/58
  Updating   : libsoup-2.28.2-1.el6_1.1.x86_64                                                                    13/58
  Installing : kernel-devel-2.6.32-131.6.1.el6.x86_64                                                             14/58
  Updating   : systemtap-1.4-6.el6_1.2.x86_64                                                                     15/58
  Updating   : libsoup-devel-2.28.2-1.el6_1.1.x86_64                                                              16/58
  Updating   : selinux-policy-targeted-3.7.19-93.el6_1.2.noarch                                                   17/58
  Updating   : system-config-firewall-tui-1.2.27-3.el6_1.3.noarch                                                 18/58
  Updating   : subversion-1.6.11-2.el6_1.4.x86_64                                                                 19/58
  Updating   : 32:bind-utils-9.7.3-2.el6_1.P3.2.x86_64                                                            20/58
  Updating   : 1:java-1.6.0-openjdk-devel-1.6.0.0-1.39.1.9.8.el6_1.x86_64                                         21/58
  Updating   : freetype-devel-2.3.11-6.el6_1.6.x86_64                                                             22/58
  Updating   : 2:libpng-devel-1.2.46-1.el6_1.x86_64                                                               23/58
  Updating   : curl-7.19.7-26.el6_1.1.x86_64                                                                      24/58
  Updating   : libcurl-devel-7.19.7-26.el6_1.1.x86_64                                                             25/58
  Updating   : krb5-devel-1.9-9.el6_1.1.x86_64                                                                    26/58
  Updating   : perf-2.6.32-131.6.1.el6.x86_64                                                                     27/58
  Updating   : 2:postfix-2.6.6-2.2.el6_1.x86_64                                                                   28/58
  Updating   : kernel-headers-2.6.32-131.6.1.el6.x86_64                                                           29/58
  Updating   : libsndfile-1.0.20-3.el6_1.1.x86_64                                                                 30/58
  Cleanup    : system-config-firewall-tui-1.2.27-3.el6_0.2.noarch                                                 31/58
  Cleanup    : libcurl-devel-7.19.7-26.el6.x86_64                                                                 32/58
  Cleanup    : selinux-policy-targeted-3.7.19-93.el6.noarch                                                       33/58
  Cleanup    : libsoup-devel-2.28.2-1.el6.x86_64                                                                  34/58
  Cleanup    : 2:libpng-devel-1.2.44-1.el6.x86_64                                                                 35/58
  Cleanup    : freetype-devel-2.3.11-6.el6_0.2.x86_64                                                             36/58
  Cleanup    : 32:bind-utils-9.7.3-2.el6.x86_64                                                                   37/58
  Cleanup    : curl-7.19.7-26.el6.x86_64                                                                          38/58
  Cleanup    : libcurl-7.19.7-26.el6.x86_64                                                                       39/58
  Cleanup    : 32:bind-libs-9.7.3-2.el6.x86_64                                                                    40/58
  Cleanup    : krb5-devel-1.9-9.el6.x86_64                                                                        41/58
  Cleanup    : 1:java-1.6.0-openjdk-devel-1.6.0.0-1.39.1.9.7.el6.x86_64                                           42/58
  Cleanup    : 1:java-1.6.0-openjdk-1.6.0.0-1.39.1.9.7.el6.x86_64                                                 43/58
  Cleanup    : subversion-1.6.11-2.el6_0.3.x86_64                                                                 44/58
  Cleanup    : systemtap-1.4-6.el6.x86_64                                                                         45/58
  Cleanup    : selinux-policy-3.7.19-93.el6.noarch                                                                46/58
  Cleanup    : system-config-firewall-base-1.2.27-3.el6_0.2.noarch                                                47/58
  Cleanup    : perf-2.6.32-131.0.15.el6.x86_64                                                                    48/58
  Cleanup    : kernel-firmware-2.6.32-131.0.15.el6.noarch                                                         49/58
  Cleanup    : kernel-headers-2.6.32-131.0.15.el6.x86_64                                                          50/58
  Cleanup    : systemtap-runtime-1.4-6.el6.x86_64                                                                 51/58
  Cleanup    : apr-1.3.9-3.el6.x86_64                                                                             52/58
  Cleanup    : freetype-2.3.11-6.el6_0.2.x86_64                                                                   53/58
  Cleanup    : 2:libpng-1.2.44-1.el6.x86_64                                                                       54/58
  Cleanup    : krb5-libs-1.9-9.el6.x86_64                                                                         55/58
  Cleanup    : libsoup-2.28.2-1.el6.x86_64                                                                        56/58
  Cleanup    : 2:postfix-2.6.6-2.1.el6_0.x86_64                                                                   57/58
  Cleanup    : libsndfile-1.0.20-3.el6.x86_64                                                                     58/58

Installed:
  kernel.x86_64 0:2.6.32-131.6.1.el6                      kernel-devel.x86_64 0:2.6.32-131.6.1.el6

Updated:
  apr.x86_64 0:1.3.9-3.el6_1.2                             bind-libs.x86_64 32:9.7.3-2.el6_1.P3.2
  bind-utils.x86_64 32:9.7.3-2.el6_1.P3.2                  curl.x86_64 0:7.19.7-26.el6_1.1
  freetype.x86_64 0:2.3.11-6.el6_1.6                       freetype-devel.x86_64 0:2.3.11-6.el6_1.6
  java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.39.1.9.8.el6_1     java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-1.39.1.9.8.el6_1
  kernel-firmware.noarch 0:2.6.32-131.6.1.el6              kernel-headers.x86_64 0:2.6.32-131.6.1.el6
  krb5-devel.x86_64 0:1.9-9.el6_1.1                        krb5-libs.x86_64 0:1.9-9.el6_1.1
  libcurl.x86_64 0:7.19.7-26.el6_1.1                       libcurl-devel.x86_64 0:7.19.7-26.el6_1.1
  libpng.x86_64 2:1.2.46-1.el6_1                           libpng-devel.x86_64 2:1.2.46-1.el6_1
  libsndfile.x86_64 0:1.0.20-3.el6_1.1                     libsoup.x86_64 0:2.28.2-1.el6_1.1
  libsoup-devel.x86_64 0:2.28.2-1.el6_1.1                  perf.x86_64 0:2.6.32-131.6.1.el6
  postfix.x86_64 2:2.6.6-2.2.el6_1                         selinux-policy.noarch 0:3.7.19-93.el6_1.2
  selinux-policy-targeted.noarch 0:3.7.19-93.el6_1.2       subversion.x86_64 0:1.6.11-2.el6_1.4
  system-config-firewall-base.noarch 0:1.2.27-3.el6_1.3    system-config-firewall-tui.noarch 0:1.2.27-3.el6_1.3
  systemtap.x86_64 0:1.4-6.el6_1.2                         systemtap-runtime.x86_64 0:1.4-6.el6_1.2

Complete!

作業:yum update

■必要パッケージのインストール

好みで適当に。
システム全体で、現時点での必須は特にありません。

■不要パッケージのアンインストール

こちらも適宜。

■yum 用リポジトリ追加

□RPMforge

# yum list | grep rpmforge-release
rpmforge-release.x86_64                 0.5.2-2.el6.rf              sl

# yum -y install rpmforge-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * sl: ftp.riken.jp
 * sl-security: ftp.scientificlinux.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rpmforge-release.x86_64 0:0.5.2-2.el6.rf will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                           Arch                    Version                            Repository           Size
========================================================================================================================
Installing:
 rpmforge-release                  x86_64                  0.5.2-2.el6.rf                     sl                   12 k

Transaction Summary
========================================================================================================================
Install       1 Package(s)

Total download size: 12 k
Installed size: 13 k
Downloading Packages:
rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm                                                       |  12 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : rpmforge-release-0.5.2-2.el6.rf.x86_64                                                               1/1

Installed:
  rpmforge-release.x86_64 0:0.5.2-2.el6.rf

Complete!

# yum list | grep rpmforge-release
rpmforge-release.x86_64                  0.5.2-2.el6.rf              @sl

# rcsdiff -r1.1 /etc/yum.repos.d/rpmforge.repo
===================================================================
RCS file: /etc/yum.repos.d/RCS/rpmforge.repo,v
retrieving revision 1.1
diff -r1.1 /etc/yum.repos.d/rpmforge.repo
8c8
< enabled = 1
---
> enabled = 0

作業:RPMforge リポジトリ追加

RPMforge を利用する場合のコマンド例

# yum --enablerepo=rpmforge install [パッケージ名]

□EPEL(Fedora Project)

# yum list | grep epel-release
epel-release.noarch                     6-5                         sl

# yum -y install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * sl: ftp.riken.jp
 * sl-security: ftp.scientificlinux.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-5 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
 Package                           Arch                        Version                    Repository               Size
========================================================================================================================
Installing:
 epel-release                      noarch                      6-5                        sl                       13 k

Transaction Summary
========================================================================================================================
Install       1 Package(s)

Total download size: 13 k
Installed size: 22 k
Downloading Packages:
epel-release-6-5.noarch.rpm                                                                      |  13 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : epel-release-6-5.noarch                                                                              1/1

Installed:
  epel-release.noarch 0:6-5

Complete!

# yum list | grep rpmforge-release
rpmforge-release.x86_64                 0.5.2-2.el6.rf              @sl

# rcsdiff -r1.1 /etc/yum.repos.d/epel.repo
===================================================================
RCS file: /etc/yum.repos.d/RCS/epel.repo,v
retrieving revision 1.1
diff -r1.1 /etc/yum.repos.d/epel.repo
6c6
< enabled=1
---
> enabled=0

作業:EPEL リポジトリ追加

EPEL を利用する場合のコマンド例

# yum --enablerepo=epel install [パッケージ名]

以上

Tags: ,

Leave a Reply

© 2009 暁なIT備忘録. All Rights Reserved.

This blog is powered by the Wordpress platform and beach rentals.