安裝ruby
[root@TA30-53 ~]# yum install ruby
已加載插件:fastestmirror, security
設置安裝進程
Loading mirror speeds from cached hostfile
包 ruby-1.8.7.374-4.el6_6.x86_64 已安裝並且是最新版本
無須任何處理
測試一下
[root@TA30-53 ~]# ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
安裝rubygems
[root@TA30-53 ~]# yum install rubygems
已加載插件:fastestmirror, security
設置安裝進程
Loading mirror speeds from cached hostfile
包 rubygems-1.3.7-5.el6.noarch 已安裝並且是最新版本
無須任何處理
[root@TA30-53 ssl]# yum install -y httpd
已加載插件:fastestmirror, security
設置安裝進程
Loading mirror speeds from cached hostfile
base | 3.7 kB 00:00
centosplus | 3.4 kB 00:00
contrib | 2.9 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
update | 3.4 kB 00:00
解決依賴關係
--> 執行事務檢查
---> Package httpd.x86_64 0:2.2.15-39.el6.centos will be 升級
---> Package httpd.x86_64 0:2.2.15-54.el6.centos will be an update
--> 處理依賴關係 httpd-tools = 2.2.15-54.el6.centos,它被軟件包 httpd-2.2.15-54.el6.centos.x86_64 需要
--> 執行事務檢查
---> Package httpd-tools.x86_64 0:2.2.15-39.el6.centos will be 升級
---> Package httpd-tools.x86_64 0:2.2.15-54.el6.centos will be an update
--> 完成依賴關係計算
依賴關係解決
=====================================================================
軟件包 架構 版本 倉庫 大小
=====================================================================
正在升級:
httpd x86_64 2.2.15-54.el6.centos update 833 k
爲依賴而更新:
httpd-tools x86_64 2.2.15-54.el6.centos update 79 k
事務概要
=====================================================================
Upgrade 2 Package(s)
總下載量:912 k
下載軟件包:
(1/2): httpd-2.2.15-54.el6.centos.x86_64.rpm | 833 kB 00:00
(2/2): httpd-tools-2.2.15-54.el6.centos.x86_6 | 79 kB 00:00
---------------------------------------------------------------------
總計 36 MB/s | 912 kB 00:00
運行 rpm_check_debug
執行事務測試
事務測試成功
執行事務
正在升級 : httpd-tools-2.2.15-54.el6.centos.x86_64 1/4
正在升級 : httpd-2.2.15-54.el6.centos.x86_64 2/4
清理 : httpd-2.2.15-39.el6.centos.x86_64 3/4
清理 : httpd-tools-2.2.15-39.el6.centos.x86_64 4/4
Verifying : httpd-tools-2.2.15-54.el6.centos.x86_64 1/4
Verifying : httpd-2.2.15-54.el6.centos.x86_64 2/4
Verifying : httpd-2.2.15-39.el6.centos.x86_64 3/4
Verifying : httpd-tools-2.2.15-39.el6.centos.x86_64 4/4
更新完畢:
httpd.x86_64 0:2.2.15-54.el6.centos
作爲依賴被升級:
httpd-tools.x86_64 0:2.2.15-54.el6.centos
完畢!