[root@linux ~]# yum check-update ← インストール済でアップデート可能なRPMパッケージ検索 Setting up Repo: base repomd.xml 100% |=========================| 1.1 kB 00:00 Setting up Repo: updates-released repomd.xml 100% |=========================| 951 B 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 797 kB 00:03 MD Read : ################################################## 2623/2623 base : ################################################## 2622/2622 primary.xml.gz 100% |=========================| 75 kB 00:04 MD Read : ################################################## 182/182 updates-re: ################################################## 182/182 以下がインストール済でアップデート可能なRPMパッケージ httpd.i386 2.0.52-3.1 updates-released httpd-suexec.i386 2.0.52-3.1 updates-released [root@linux ~]# rpm -q httpd ← httpdパッケージアップデート前バージョンチェック httpd-2.0.52-3 ← インストール済httpdパッケージのバージョンは2.0.52-3 [root@linux ~]# yum -y update httpd ← httpdパッケージアップデート Setting up Update Process Setting up Repo: base repomd.xml 100% |=========================| 1.1 kB 00:00 Setting up Repo: updates-released repomd.xml 100% |=========================| 951 B 00:00 Reading repository metadata in from local files base : ################################################## 2622/2622 primary.xml.gz 100% |=========================| 83 kB 00:01 MD Read : ################################################## 207/207 updates-re: ################################################## 207/207 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for httpd to pack into transaction set. httpd-2.0.52-3.1.i386.rpm 100% |=========================| 58 kB 00:01 ---> Package httpd.i386 0:2.0.52-3.1 set to be updated --> Running transaction check --> Processing Dependency: httpd= 2.0.52-3 for package: httpd-suexec --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Downloading header for httpd-suexec to pack into transaction set. httpd-suexec-2.0.52-3.1.i 100% |=========================| 18 kB 00:00 ---> Package httpd-suexec.i386 0:2.0.52-3.1 set to be updated --> Running transaction check Dependencies Resolved Transaction Listing: Update: httpd.i386 0:2.0.52-3.1 Performing the following to resolve dependencies: Update: httpd-suexec.i386 0:2.0.52-3.1 Downloading Packages: httpd-2.0.52-3.1.i386.rpm 100% |=========================| 881 kB 00:04 httpd-suexec-2.0.52-3.1.i 100% |=========================| 24 kB 00:00 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating: httpd-suexec 100 % done 1/4 Updating: httpd 100 % done 2/4 Completing update for httpd - 3/4 Completing update for httpd-suexec - 4/4 Updated: httpd.i386 0:2.0.52-3.1 Dependency Updated: httpd-suexec.i386 0:2.0.52-3.1 Complete! [root@linux ~]# rpm -q httpd ← httpdパッケージアップデート後バージョンチェック httpd-2.0.52-3.1 ← httpdパッケージが2.0.52-3⇒2.0.52-3.1にアップデートされた |