AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 40249
In Process

        3 revs, 2 users 67%anon
3 revs, 2 users 67%anon
Asked: 2009-07-14 12:16:54 +0800 CST2009-07-14 12:16:54 +0800 CST 2009-07-14 12:16:54 +0800 CST

yum:两台服务器上的设置相同,结果不同

  • 772

我在 2 台服务器上运行 CentOS,均使用 yum 3.2.19。重复出现在一台服务器上,但没有出现在另一台服务器上。我检查了 repolist 并且它们匹配:

服务器1:

[root@localhost yum.repos.d]# yum repolist all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: pubmirrors.reflected.net
 * updates: mirror.atlanticmetro.net
 * addons: chi-10g-1-mirror.fastsoft.net
 * extras: mirrors.greenmountainaccess.net
repo id              repo name                                status
addons               CentOS-5 - Addons                        enabled:       0
base                 CentOS-5 - Base                          enabled:   2,508
c5-media             CentOS-5 - Media                         disabled
centosplus           CentOS-5 - Plus                          disabled
contrib              CentOS-5 - Contrib                       disabled
extras               CentOS-5 - Extras                        enabled:     311
updates              CentOS-5 - Updates                       enabled:     339
repolist: 3,158

服务器2:

[root@server yum.repos.d]# yum repolist all
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.sanctuaryhost.com
 * updates: mirror.trouble-free.net
 * addons: mirror.skiplink.com
 * extras: mirror.atlanticmetro.net
repo id              repo name                                status
addons               CentOS-5 - Addons                        enabled:       0
base                 CentOS-5 - Base                          enabled:   2,508
c5-media             CentOS-5 - Media                         disabled
centosplus           CentOS-5 - Plus                          disabled
contrib              CentOS-5 - Contrib                       disabled
extras               CentOS-5 - Extras                        enabled:     311
updates              CentOS-5 - Updates                       enabled:     339
repolist: 3,158

Server1 在 yum 中看到重复:

[root@localhost yum.repos.d]# yum search duplicity
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: pubmirrors.reflected.net
 * updates: mirror.atlanticmetro.net
 * addons: chi-10g-1-mirror.fastsoft.net
 * extras: mirrors.greenmountainaccess.net
============================================================ Matched: duplicity =============================================================
duplicity.i386 : Encrypted bandwidth-efficient backup using rsync algorithm

Server2 看不到重复性:

[root@server yum.repos.d]# yum search duplicity
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.sanctuaryhost.com
 * updates: mirror.trouble-free.net
 * addons: mirror.skiplink.com
 * extras: mirror.atlanticmetro.net
Excluding Packages in global exclude list
Finished
Warning: No matches found for: duplicity
No Matches found

我错过了什么(试图在 Server2 上使用 yum 获得双重性)?我知道镜子是不同的,但我认为如果存储库相同,这并不重要。

centos yum
  • 4 4 个回答
  • 3294 Views

4 个回答

  • Voted
  1. Dave Forgac
    2009-07-14T19:25:28+08:002009-07-14T19:25:28+08:00

    首先,镜像不一定总是完全“镜像”存储库。

    其次,尝试先这样做:

    user@host:[~]$ yum clean all
    
    • 3
  2. Saurabh Barjatiya
    2009-07-15T03:22:22+08:002009-07-15T03:22:22+08:00

    第二台服务器显示

    在全局排除列表中排除包

    如果那里提到重复,请检查全局排除列表。

    • 1
  3. James Antill
    2009-07-23T10:56:07+08:002009-07-23T10:56:07+08:00

    有几件事:

    • 你从哪里得到 3.2.19,那不是 CentOS-5 的正常 yum 版本。

    • 您可以使用 --disableexcludes=all 禁用排除,以防其中一台机器排除了某些包。

    • 迪托。用于禁用可以排除软件包(--noplugins 或 --disableplugin=)的插件(如 versionlock)。

    • 我很确定 3.2.19 repolist 会给你 repos 中数据的时间戳。与: yum repolist -v ...然后如果时间戳不匹配,您想对旧的执行“yum clean expire-cache”(但缺少包的可能性最小)。

    • 1
  4. Shawn B
    2009-07-16T04:49:31+08:002009-07-16T04:49:31+08:00

    从您在这里看到的内容来看,您可能想尝试'yum --disableplugins' 我敢打赌server2 上的yum 认为一个镜像比server1 上的另一个镜像快。禁用最快的镜像插件可能有助于解决您的问题。您还可以查看 yum priority 插件,它允许您为某些 repos 设置优先级。

    这是 yum 优先级链接: http ://wiki.centos.org/PackageManagement/Yum/Priorities

    • 0

相关问题

  • 要安装哪个 linux 版本:i386 还是 x64?

  • CentOS 5.3 的 kickstart 文件示例

  • 适合初级 Linux 管理员的资源

  • 如何配置外部 CentOS 服务器作为 HTTP 代理/中继?

  • CentOS 的百胜安全?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    Windows 中执行反向 DNS 查找的命令行实用程序是什么?

    • 14 个回答
  • Marko Smith

    如何检查 Windows 机器上的端口是否被阻塞?

    • 4 个回答
  • Marko Smith

    我应该打开哪个端口以允许远程桌面?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    kch 如何更改我的私钥密码? 2009-08-06 21:37:57 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve