パッケージ管理。

デフォルトの状態だとyum-updatesdっていうデーモンが動作していて、たまたまupdatesdが動作していたりするとyumが利用できなかったり、大量にメモリを消費したりとあまり良くないので停止し、cronで夜間に更新するように設定変更する。

yum-updatesdを停止する

# /etc/rc.d/init.d/yum-updatesd stop
yum-updates を停止中:                                      [  OK  ]

yum-updatesdを削除する。

# yum -y remove yum-updatesd
Loading "installonlyn" plugin
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package yum-updatesd.noarch 0:3.0.5-1.el5.centos.5 set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
yum-updatesd            noarch     3.0.5-1.el5.centos.5  installed         4.0 k

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

Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Removing  : yum-updatesd                 ######################### [1/1]

Removed: yum-updatesd.noarch 0:3.0.5-1.el5.centos.5
Complete!

fastestmirrorプラグインをインストールする。

# yum -y install yum-fastestmirror
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                                                          1.1 kB 00:02
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yum-fastestmirror to pack into transaction set.
yum-fastestmirror-1.0.4-3 100% |=========================| 6.1 kB    00:00
---> Package yum-fastestmirror.noarch 0:1.0.4-3.el5.centos.2 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
yum-fastestmirror       noarch     1.0.4-3.el5.centos.2  base               12 k

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

Total download size: 12 k
Downloading Packages:
(1/1): yum-fastestmirror- 100% |=========================|  12 kB    00:00
Running Transaction Test
warning: yum-fastestmirror-1.0.4-3.el5.centos.2: Header V3 DSA signature: NOKEY, key ID e8562897
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum-fastestmirror            ######################### [1/1]

Installed: yum-fastestmirror.noarch 0:1.0.4-3.el5.centos.2
Complete!

yum-cronをインストールする。

# yum -y install yum-cron
Loading "installonlyn" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
Determining fastest mirrors
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yum-cron to pack into transaction set.
yum-cron-0.6-1.el5.centos 100% |=========================| 6.0 kB    00:00
---> Package yum-cron.noarch 0:0.6-1.el5.centos set to be updated
--> Running transaction check
--> Processing Dependency: yum-downloadonly for package: yum-cron
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for yum-downloadonly to pack into transaction set.
yum-downloadonly-1.0.4-3. 100% |=========================| 6.1 kB    00:00
---> Package yum-downloadonly.noarch 0:1.0.4-3.el5.centos.2 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
yum-cron                noarch     0.6-1.el5.centos  base               15 k
Installing for dependencies:
yum-downloadonly        noarch     1.0.4-3.el5.centos.2  base              8.2 k

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

Total download size: 23 k
Downloading Packages:
(1/2): yum-downloadonly-1 100% |=========================| 8.2 kB    00:00
(2/2): yum-cron-0.6-1.el5 100% |=========================|  15 kB    00:00
Running Transaction Test
warning: yum-downloadonly-1.0.4-3.el5.centos.2: Header V3 DSA signature: NOKEY, key ID e8562897
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum-downloadonly             ######################### [1/2]
Installing: yum-cron                     ######################### [2/2]

Installed: yum-cron.noarch 0:0.6-1.el5.centos
Dependency Installed: yum-downloadonly.noarch 0:1.0.4-3.el5.centos.2
Complete!

関連記事

  1. NO IMAGE
  2. NO IMAGE

    2015.02.17

    Mac mini売却
  3. NO IMAGE

    2008.02.21

    家サーバの。
  4. NO IMAGE

    2012.12.06

    Apple Remote。

コメントをお待ちしております

CALENDAR

2025年1月
 1234
567891011
12131415161718
19202122232425
262728293031  

ARCHIVES

CATEGORIES