在Ubuntu上安装Mercurial的正确方法 [英] Correct way to install Mercurial on Ubuntu

查看:340
本文介绍了在Ubuntu上安装Mercurial的正确方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Mercurial和Ubuntu都是我的新手.

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 doing this.

我应该使用apt-get命令吗?如果是这样,在这种情况下我将如何使用它?在文件系统上安装Mercurial的最佳位置是哪里?如何将其作为Shell的一部分(我认为是svn-ish),以便可以正确地检入和更新内容?

Should I use the apt-get command? If so, how would I use it in this case? Where is the best place to install Mercurial on my file system, and how do I make it part of my shell (I am thinking svn-ish) so I can properly check things in and update?

谢谢, 亚历克斯

推荐答案

只需使用:

sudo apt-get install mercurial

它应该将其安装在默认文件夹中,并正确更新您的环境变量.那么您应该能够像svn一样从命令行使用"hg",尽管Hg是更好的源代码控制工具.

It should install it in the default folder and update your environment variables correctly. then you should be able to use 'hg' from the command line, just like svn, although Hg is a much better source control tool.

这篇关于在Ubuntu上安装Mercurial的正确方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆