1:安装
[root@localhost yum.repos.d]# yum install subversion
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
错误:Cannot find a valid baseurl for repo: base
通过
[root@localhost yum.repos.d]# wget www.baidu.com
--2015-08-26 13:41:07-- http://www.baidu.com/
正在解析主机 www.baidu.com... 180.97.33.108, 180.97.33.107
正在连接 www.baidu.com|180.97.33.108|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Moved Temporarily
位置:http://192.168.13.252/webAuth/index.htm?www.baidu.com/ [跟随至新的 URL]
--2015-08-26 13:41:07-- http://192.168.13.252/webAuth/index.htm?www.baidu.com/
正在连接 192.168.13.252:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:4305 (4.2K) [text/html]
正在保存至: “index.html”
100%[==========================================================================>] 4,305 --.-K/s in 0s
2015-08-26 13:41:07 (485 MB/s) - 已保存 “index.html” [4305/4305])
查index.html 发现,上网需要认证,取消即可
[root@localhost ~]# yum install subversion
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.pubyun.com
base | 3.7 kB 00:00
base/primary_db | 4.6 MB 00:16
extras | 3.4 kB 00:00
extras/primary_db | 27 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 1.3 MB 00:04
解决依赖关系
--> 执行事务检查
---> Package subversion.x86_64 0:1.6.11-15.el6_7 will be 安装
--> 处理依赖关系 perl(URI) >= 1.17,它被软件包 subversion-1.6.11-15.el6_7.x86_64 需要
--> 执行事务检查
---> Package perl-URI.noarch 0:1.40-2.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
====================================================================================================================
软件包 架构 版本 仓库 大小
====================================================================================================================
正在安装:
subversion x86_64 1.6.11-15.el6_7 updates 2.3 M
为依赖而安装:
perl-URI noarch 1.40-2.el6 base 117 k
事务概要
====================================================================================================================
Install 2 Package(s)
总下载量:2.4 M
Installed size: 12 M
确定吗?[y/N]:y
下载软件包:
(1/2): perl-URI-1.40-2.el6.noarch.rpm | 117 kB 00:00
(2/2): subversion-1.6.11-15.el6_7.x86_64.rpm | 2.3 MB 00:05
--------------------------------------------------------------------------------------------------------------------
总计 413 kB/s | 2.4 MB 00:05
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
Package: centos-release-6-6.el6.centos.12.2.x86_64 (@anaconda-CentOS-201410241409.x86_64/6.6)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
确定吗?[y/N]:y
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : perl-URI-1.40-2.el6.noarch 1/2
正在安装 : subversion-1.6.11-15.el6_7.x86_64 2/2
Verifying : perl-URI-1.40-2.el6.noarch 1/2
Verifying : subversion-1.6.11-15.el6_7.x86_64 2/2
已安装:
subversion.x86_64 0:1.6.11-15.el6_7
作为依赖被安装:
perl-URI.noarch 0:1.40-2.el6
完毕!
2:安装httpd
[root@localhost svn]# yum -y install httpd
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirror.neu.edu.cn
* extras: mirrors.btte.net
* updates: mirrors.163.com
解决依赖关系
--> 执行事务检查
---> Package httpd.x86_64 0:2.2.15-39.el6.centos will be 升级
---> Package httpd.x86_64 0:2.2.15-47.el6.centos will be an update
--> 处理依赖关系 httpd-tools = 2.2.15-47.el6.centos,它被软件包 httpd-2.2.15-47.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-47.el6.centos will be an update
--> 完成依赖关系计算
依赖关系解决
====================================================================================================================
软件包 架构 版本 仓库 大小
====================================================================================================================
正在升级:
httpd x86_64 2.2.15-47.el6.centos updates 830 k
为依赖而更新:
httpd-tools x86_64 2.2.15-47.el6.centos updates 77 k
事务概要
====================================================================================================================
Upgrade 2 Package(s)
总下载量:907 k
下载软件包:
(1/2): httpd-2.2.15-47.el6.centos.x86_64.rpm | 830 kB 00:02
(2/2): httpd-tools-2.2.15-47.el6.centos.x86_64.rpm | 77 kB 00:00
--------------------------------------------------------------------------------------------------------------------
总计 226 kB/s | 907 kB 00:04
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在升级 : httpd-tools-2.2.15-47.el6.centos.x86_64 1/4
正在升级 : httpd-2.2.15-47.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-47.el6.centos.x86_64 1/4
Verifying : httpd-2.2.15-47.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-47.el6.centos
作为依赖被升级:
httpd-tools.x86_64 0:2.2.15-47.el6.centos
完毕!