首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >CENTOS yum不同版本

CENTOS yum不同版本
EN

Server Fault用户
提问于 2014-12-12 13:18:46
回答 2查看 162关注 0票数 -3

我有两个运行centos的服务器,它们位于同一个数据中心。

我想更新我的mod-pagespeed模块

服务器1:

代码语言:javascript
运行
复制
[root@web2 11]# yum update mod-pagespeed
Loaded plugins: auto-update-debuginfo, fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
 * base: centos.mirror.linuxwerk.com
 * epel: mirrors.n-ix.net
 * extras: mirror.softaculous.com
 * updates: centosmirror.netcup.net
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mod-pagespeed-beta.x86_64 0:1.7.30.4-3847 will be updated
---> Package mod-pagespeed-beta.x86_64 0:1.9.32.2-4321 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================================
 Package                                             Arch                                    Version                                        Repository                                      Size
=================================================================================================================================================================================================
Updating:
 mod-pagespeed-beta                                  x86_64                                  1.9.32.2-4321                                  mod-pagespeed                                  5.8 M

Transaction Summary
=================================================================================================================================================================================================
Upgrade       1 Package(s)

服务器2

代码语言:javascript
运行
复制
[root@web ~]# yum update mod-pagespeed
Loaded plugins: auto-update-debuginfo, fastestmirror, priorities, security
Determining fastest mirrors
epel/metalink                                            |  26 kB     00:00     
 * base: ftp.plusline.de
 * epel: mirrors.n-ix.net
 * extras: ftp.plusline.de
 * updates: ftp.plusline.de
10gen                                                    |  951 B     00:00     
base                                                     | 3.7 kB     00:00     
cr                                                       | 3.3 kB     00:00     
dag                                                      | 1.9 kB     00:00     
extras                                                   | 3.4 kB     00:00     
mod-pagespeed                                            |  951 B     00:00     
rbel5                                                    | 1.9 kB     00:00     
updates                                                  | 3.4 kB     00:00     
varnish-3.0                                              |  951 B     00:00     
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package mod-pagespeed-stable.x86_64 0:1.7.30.4-3847 will be updated
---> Package mod-pagespeed-stable.x86_64 0:1.8.31.5-4307 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                  Arch       Version            Repository         Size
================================================================================
Updating:
 mod-pagespeed-stable     x86_64     1.8.31.5-4307      mod-pagespeed     5.4 M

Transaction Summary
================================================================================
Upgrade       1 Package(s)

所以你可以看到server2说最新版本是1.8*服务器1说1.9.* is

他们在底座,埃佩尔,附加镜上有差异,

如何在server2上加载相同的版本?

EN

回答 2

Server Fault用户

回答已采纳

发布于 2014-12-12 13:31:08

不同的服务器正在使用不同的CentOS镜像,其中一个可能(尚未)与上游完全同步。

默认情况下,yum存储库配置使用mirrorlist=http://mirrorlist.centos.org/...指令,该指令不确定地确定了一个好的镜像。另一台服务器可以而且将经常使用备用镜像。

您可以在yum存储库中使用baseurl=指令来指向同一个镜像,而不是使用mirrorlist

票数 3
EN

Server Fault用户

发布于 2014-12-12 13:43:23

根据输出,您试图更新的包似乎是不同的。web2显示,就像web显示的一样,mod-pagespeed-稳定。确保您正在更新正确的包。相反,您可以尝试"yum update mod-pagespeed-stable“。

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/652125

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档