Where to find complete binary package of Mercurial for Linux Red Hat ?

Mads Kiilerich mads at kiilerich.com
Thu Jan 19 22:32:04 UTC 2012


Cassie Willions wrote, On 01/19/2012 10:52 PM:
> Dear all,
>
> I am trying to install a Mercurial to my Red Hat Linux system.
> However, I can not find the .rpm file at
> http://mercurial.selenic.com/wiki/Download. Thus, I tried to find it
> at at pkgs.repoforge.org/mercurial and  downloaded a
> mercurial-ssh-1.8.1-1.e15.if.x86_64.rpm file from it. However, it
> failed to install with an error message of "Missing Dependency:
> mercurial = 1.8.1-1.el5.rf is needed by package
> mercurial-ssh-1.8.1-1.el5.rf.x86_64". I can not find
> mercurial-ssh-1.8.1-1.e15.rf.x86_64 anywhere. I tried another website
> but still, my machine complained about missing more other files.
>
> Thus, does anyone know where to find a complete Mercurial binary
> package for Red Hat Linux so I do not miss any file for installation ?

First step to have any fun on RHEL 5 is to enable EPEL. That will make 
it possible to run 'yum install mercurial'. EPEL do however follow the 
Enterprise policy of 'no change is a good change' and do only have an 
ancient version. But Mercurial is extremely backward compatible and the 
old version might be sufficient for many purposes.

To get a new version you can do something like
sudo yum install rpm-build python-devel python-docutils
hg clone http://selenic.com/hg
cd hg
contrib/buildrpm
sudo rpm -Uhv rpmbuild/.../mercurial...rpm

you can also just do
cd hg
make local
ln -s `pwd`/hg /usr/local/bin/

(all untested and from memory)

/Mads




More information about the Mercurial mailing list