CentOSをyumでUpadate

更新日 2010-10-18 (月) 21:24:43

一番近いUpdateサイトを指定

yum install yum-fastestmirrorで指定する

# yum 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                    100% |=========================| 1.1 kB    00:00
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-2 100% |=========================| 5.0 kB    00:00
---> Package yum-fastestmirror.noarch 0:1.0.4-2.el5.centos set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 yum-fastestmirror       noarch     1.0.4-2.el5.centos  extras             11 k

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

Total download size: 11 k
Is this ok [y/N]: y    <==yを指定
Downloading Packages:
(1/1): yum-fastestmirror- 100% |=========================|  11 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: yum-fastestmirror            ######################### [1/1]

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

CentOSPlusの追加

/etc/yum.repos.d/CentOS-Base.repoを以下のようにenabled=1に変更

[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
##enabled=0
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

インストールパッケージの表示

# yum list
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Setting up repositories
Determining fastest mirrors
Reading repository metadata in from local files
Installed Packages
Deployment_Guide-en-US.noarch            5.0.0-21.el5.centos    installed
Deployment_Guide-ja-JP.noarch            5.0.0-21.el5.centos    installed
GConf2.i386                              2.14.0-9.el5           installed
ImageMagick.i386                         6.2.8.0-3.el5.4        installed
(略)

updatge可能なパッケージの一覧

# yum check-update
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Setting up repositorieshttps://wwwism.dyndns.org/?cmd=edit&page=turboLinux_White%20Box%20Enterprise%20Linux_Fedora%20Core_Red%20Hat%20Memo%2FCentOS_yum
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files

Upadte

# yum update
Loading "fastestmirror" plugin
Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion

参考ページ

CentOS 5 インストール個人的ノート


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS