如何安装 64 位(x86_64)版本的 MongoDB?
我在 10gen.repo 中指定了 64 位:
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
但是当我跑步时:
yum install mongo-10gen mongo-10gen-server
它设置为安装32位(参见i686)。
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.fdcservers.net
* epel: mirror.steadfast.net
* extras: mirror.fdcservers.net
* rpmforge: mirror.rit.edu
* updates: mirror.fdcservers.net
10gen | 951 B 00:00
Not using downloaded repomd.xml because it is older than what we have:
Current : Tue Oct 30 15:55:02 2012
Downloaded: Tue Oct 30 15:54:51 2012
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mongo-10gen.i686 0:2.2.1-mongodb_1 will be installed
---> Package mongo-10gen-server.i686 0:2.2.1-mongodb_1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================
Installing:
mongo-10gen i686 2.2.1-mongodb_1 10gen 42 M
mongo-10gen-server i686 2.2.1-mongodb_1 10gen 6.5 M
Transaction Summary
======================================================================================================================================================
Install 2 Package(s)
Total download size: 48 M
Installed size: 118 M
我想我知道为什么它想要安装 32 位版本:第一次我制作 10gen.repo 文件时,其中指定了 32 位链接,并安装了 32 位,后来我将其删除了。
可能有些内容已被缓存。有人能帮我解决这个问题吗?
答案1
是的,这似乎是一个缓存问题:
10gen | 951 B 00:00
Not using downloaded repomd.xml because it is older than what we have:
Current : Tue Oct 30 15:55:02 2012
Downloaded: Tue Oct 30 15:54:51 2012
清除您的 yum 缓存,然后重试。
yum clean all