*CentOSをyumでUpadate [#vc499064] RIGHT:更新日 &lastmod(); ***一番近いUpdateサイトを指定 [#j6f911a0] 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の追加 [#i3a58449] /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 ***インストールパッケージの表示 [#w20b792a] # 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可能なパッケージの一覧 [#y3fe6974] # 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 [#gface5f1] # 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 ***Search [#h4f3b241] キーワードでパッケージ検索 $ yum search jpeg Loaded plugins: fastestmirror ===================================== Matched: jpeg ====================================== kdegraphics.i386 : K Desktop Envitonment -グラフィックスアプリケーション ImageMagick.i386 : 画像の表示/処理用の X アプリケーション gd.i386 : PNG や JPEG 画像を高速作成するためのグラフィックライブラリ gd-devel.i386 : gd 用の開発ライブラリとヘッダーファイル gd-progs.i386 : libgd を使用したユーティリティプログラム libexif.i386 : イメージファイルから特別な情報を展開するためのライブラリ libjpeg.i386 : JPEG 画像形式のファイルを操作するためのライブラリ libjpeg-devel.i386 : libjpeg ライブラリを使用するプログラム用の開発ツール libmng.i386 : Library for Multiple-image Network Graphics support ***参考ページ [#v6b87491] [[CentOS 5 インストール個人的ノート:http://tmcosmos.org/linux/centos/co5.html]]