例としてhttpdパッケージをインストール [root@linux ~]# rpm -q httpd ← httpdパッケージインストールチェック パッケージ httpd はインストールされていません [root@linux ~]# yum -y install httpd ← httpdパッケージインストール Setting up Install 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 updates-re: ################################################## 207/207 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package httpd.i386 0:2.0.52-3.1 set to be installed --> Running transaction check --> Processing Dependency: httpd-suexec for package: httpd --> Processing Dependency: libaprutil-0.so.0 for package: httpd --> Processing Dependency: libapr-0.so.0 for package: httpd --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package httpd-suexec.i386 0:2.0.52-3.1 set to be installed ---> Package apr-util.i386 0:0.9.4-17 set to be installed ---> Package apr.i386 0:0.9.4-23 set to be installed --> Running transaction check Dependencies Resolved Transaction Listing: Install: httpd.i386 0:2.0.52-3.1 ← httpdパッケージ Performing the following to resolve dependencies: Install: apr.i386 0:0.9.4-23 ← httpdパッケージインストールに必要なパッケージ Install: apr-util.i386 0:0.9.4-17 ← httpdパッケージインストールに必要なパッケージ Install: httpd-suexec.i386 0:2.0.52-3.1 ← httpdパッケージインストールに必要なパッケージ Downloading Packages: httpd-2.0.52-3.1.i386.rpm 100% |=========================| 881 kB 00:05 httpd-suexec-2.0.52-3.1.i 100% |=========================| 24 kB 00:00 apr-util-0.9.4-17.i386.rp 100% |=========================| 51 kB 00:21 apr-0.9.4-23.i386.rpm 100% |=========================| 87 kB 00:32 Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: apr 100 % done 1/4 Installing: apr-util 100 % done 2/4 Installing: httpd 100 % done 3/4 Installing: httpd-suexec 100 % done 4/4 Installed: httpd.i386 0:2.0.52-3.1 Dependency Installed: apr.i386 0:0.9.4-23 apr-util.i386 0:0.9.4-17 httpd-suexec.i386 0:2.0.52-3.1 Complete! [root@linux ~]# rpm -q httpd ← httpdパッケージインストールチェック httpd-2.0.52-3.1 ← httpdパッケージがインストールされた なお、既にインストール済のパッケージをインストールしようとした場合は以下のようになる [root@linux ~]# yum -y install httpd ← 既にインストール済のhttpdパッケージをインストール Setting up Install 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 updates-re: ################################################## 271/271 Nothing to do ← Nothing to doとなる |