2013-06-24 150 views
2

我想在CentOs 6.3上安裝Mercurial 2.2,但是我覺得centos的存儲庫有點過時,因爲它的yum安裝總是顯示你的mercurial是最新的。在Centos上安裝Mercurial 6

現在搜索一些論壇,發現了一些其他的資料庫,通過使用下面的命令和存儲庫更新善變的客戶:

**

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

**

但是它會導致以下錯誤:

hg = 1.4-3.el6 is needed by (installed) emacs-mercurial-1.4-3.el6.i686

hg = 1.4-3.el6 is needed by (installed) mercurial-hgk-1.4-3.el6.i686

我覺得由於一些軟件包依賴,我無法安裝。

任何幫助/指針將不勝感激。

回答

0

我認爲您需要卸載較舊的(1.4.3)版本的Mercurial。或者至少首先擺脫emacs-mercurial和mercurial-hgk軟件包。

5

從博客:Install Mercurial Centos 6 VPS Mercurial 2.2.2 Centos 6.4 setup

This the only package you're able to install because other RPM packages require python 2.4 whereas Centos 6 has python 2.6 installed.

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

測試您的安裝:

[[email protected]~]# 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. 
+0

遵循本指南[使用Yum安裝Mercurial Linux .rpm文件](https://www.mercurial-scm.org/wiki/Download#Linux_.28.rpm.29)也適用於最新的Hg 3.9版本。 –

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是一種邪惡,我會盡可能跳過它。