2

我正在尝试在 CentOs 6.3 上安装 mercurial 2.2,但是我觉得 centos 的存储库有点过时,因为 yum 安装总是显示您的 mercurial 是最新的。

现在搜索了一些论坛,并使用以下命令和存储库找到了一些其他存储库来更新 mercurial 客户端:

**

rpm -Uvh http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.i686.rpm

**

但是它会导致以下错误:

(已安装)emacs-mercurial-1.4-3.el6.i686 需要 hg = 1.4-3.el6

(已安装)mercurial-hgk-1.4-3.el6.i686 需要 hg = 1.4-3.el6

我认为由于某些软件包依赖性,我无法安装。

任何帮助/指针将不胜感激。

4

3 回答 3

5

来自博客:安装 Mercurial Centos 6 VPS Mercurial 2.2.2 Centos 6.4 setup

这是您唯一可以安装的软件包,因为其他 RPM 软件包需要 python 2.4,而 Centos 6 安装了 python 2.6。

rpm -Uvh http://pkgs.repoforge.org/mercurial/mercurial-2.2.2-1.el6.rfx.x86_64.rpm

测试您的安装:

[root@~]# hg version
Mercurial Distributed SCM (version 2.2.2)
(see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2012 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
于 2014-08-22T15:38:50.500 回答
0

我认为您需要卸载较旧的 (1.4.3) 版本的 Mercurial。或者至少首先摆脱 emacs-mercurial 和 mercurial-hgk 包。

于 2013-07-29T09:40:59.043 回答
0
echo -e "[mercurial.selenic.com]\nname=mercurial.selenic.com\nbaseurl=https://www.mercurial-scm.org/release/centos\$releasever\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/mercurial.selenic.com.repo \ 
&& yum install -y mercurial

mercurial wiki 中所述。虽然,gpgcheck=0有点邪恶,但如果可能的话,我会跳过它。

于 2016-02-29T17:00:13.063 回答