Correct way to install Mercurial on Ubuntu

后端 未结 6 1241
悲&欢浪女
悲&欢浪女 2021-02-02 05:22

I am kind of new to both, Mercurial and Ubuntu.

I seem to have awkwardly installed a few other software packages already, so I wanted to see how others would go about do

6条回答
  •  梦谈多话
    2021-02-02 06:09

    Yeah you can install it by just

    sudo apt-get install mercurial
    

    but for me it gave very old version (2.0.2). You can check this by hg version. To get the newer version you can do

    sudo apt-get install python-setuptools python-dev build-essential
    sudo easy_install -U mercurial
    

    Now I have 3.0.1 version

    aniket@ubuntu:~$ hg version
    Mercurial Distributed SCM (version 3.0.1)
    (see http://mercurial.selenic.com for more information)
    
    Copyright (C) 2005-2014 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.
    

    More details : Installing Mercurial on Linux

    PS: Above link goes to my personal blog which has additional details.

提交回复
热议问题