如何在不使用“yum”的情况下在我的 Red Hat Linux 计算机上安装 Mercurial命令?
我一直在尝试在我的 Red Hat Linux 机器上安装 Mercurial 二进制包。根据安装说明,我应该输入命令“yum install Mercurial”。但是,为了使用“yum”命令,我需要首先向 RHN(Red Hat Network)注册我的系统。我尝试了几次但仍然失败。
除了等待红帽代表帮我注册之外,我想知道是否有某种方法可以让我在不注册到 RHN 的情况下使用“yum”命令。或者更好的是,有人可以告诉我如何在不使用“yum”命令的情况下安装 Mercurial 吗?我只使用“安装”命令来安装它,但它不起作用。真是郁闷啊~
非常感谢
I have been trying to install Mercurial binary packages on my Red Hat Linux machine. According to the install instructions, I should type command "yum install mercurial". However, in order to use the "yum" command, I need to first register my system with RHN(Red Hat Network). I tried a couple of times but still failed to do so.
Beside waiting for Red Hat representatives to help me register, I am wondering if there is some way for me to use "yum" command without registering to the RHN. Or even better, can someone tell me how to install Mercurial without using "yum" command ? I have used only "install" command to install it but it didn't work. It is really frustrating~
Thank you very much,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经从 RPMForge 在 CentOS 6.2 x64 上安装了最新的 Mercurial 版本,因为“基础”存储库仅包含非常旧的 Mercurial 软件包:
a) 安装 RPMForge 存储库
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
b) 默认 RPMforge 存储库不会替换任何 CentOS 基础软件包(在我们的例子中 - 来自基础存储库的非常旧的 Mercurial)。过去是这样,但这些软件包现在位于一个单独的存储库 (rpmforge-extras) 中,默认情况下该存储库是禁用的。
因此,我被迫使用 rpmforge-extras 进行安装
在这种情况下,将通过依赖项安装“mercurial-ssh”本身和“mercurial”
yum --enablerepo=rpmforge-extras install Mercurial-ssh
您只能安装“mercurial”软件包
yum - -enablerepo=rpmforge-extras 安装 Mercurial
I've installed last Mercurial version on my CentOS 6.2 x64 from RPMForge, since the "base" repository contain very old Mercurial package only:
a) Install RPMForge repository
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
b) The default RPMforge repository does not replace any CentOS base packages (In our case - very old Mercurial from base repository). In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default.
So, I forced to use rpmforge-extras for installation
In this case will installed "mercurial-ssh" itself and "mercurial" by dependency
yum --enablerepo=rpmforge-extras install mercurial-ssh
You can install "mercurial" package only
yum --enablerepo=rpmforge-extras install mercurial
从其网站下载mercurial后:
右键单击该图标(在下载文件夹中),然后在属性下单击“使可执行文件”或类似内容的框。然后双击它,它应该安装...
After you download mercurial from its website:
Right-click on the icon (in your downloads folder), and under properties click the box that says "make executable" or something similar. Then double-click on it, and it should install...