我正在尝试在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
我认为由于某些包依赖性,我无法安装。
任何帮助/指示都将受到高度赞赏。
答案 0 :(得分:5)
来自博客:Install 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.
答案 1 :(得分:0)
我认为您需要卸载较旧的(1.4.3)版本的Mercurial。或者至少首先摆脱emacs-mercurial和mercurial-hgk包。
答案 2 :(得分: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
如上所述in the mercurial wiki。虽然gpgcheck=0
有点邪恶,但如果可能的话,我会跳过它。