简体   繁体   English

如何在不使用“ yum”命令的情况下在我的Red Hat Linux机器上安装Mercurial?

[英]How to install Mercurial on my Red Hat Linux machine without using “yum” command?

I have been trying to install Mercurial binary packages on my Red Hat Linux machine. 我一直在尝试在Red Hat Linux机器上安装Mercurial二进制软件包。 According to the install instructions, I should type command "yum install mercurial". 根据安装说明,我应该键入命令“ yum install mercurial”。 However, in order to use the "yum" command, I need to first register my system with RHN(Red Hat Network). 但是,为了使用“ yum”命令,我需要先向RHN(红帽网络)注册我的系统。 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. 除了等待红帽代表帮助我注册外,我想知道是否有某种方式可以使我在不注册RHN的情况下使用“ yum”命令。 Or even better, can someone tell me how to install Mercurial without using "yum" command ? 甚至更好的是,有人可以告诉我如何在不使用“ yum”命令的情况下安装Mercurial吗? I have used only "install" command to install it but it didn't work. 我只使用“安装”命令来安装它,但是没有用。 It is really frustrating~ 真令人沮丧〜

Thank you very much, 非常感谢你,

I've installed last Mercurial version on my CentOS 6.2 x64 from RPMForge, since the "base" repository contain very old Mercurial package only: 我已经从RPMForge在CentOS 6.2 x64上安装了最新的Mercurial版本,因为“基本”存储库仅包含非常老的Mercurial软件包:

a) Install RPMForge repository a)安装RPMForge存储库

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 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 --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 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 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). b)默认的RPMforge存储库不会替换任何CentOS基本软件包(在我们的情况下-基本存储库中的非常老的Mercurial)。 In the past it used to, but those packages are now in a separate repository (rpmforge-extras) which is disabled by default. 过去曾经使用过,但是现在这些软件包位于单独的存储库(rpmforge-extras)中,默认情况下禁用。 So, I forced to use rpmforge-extras for installation 因此,我被迫使用rpmforge-extras进行安装

In this case will installed "mercurial-ssh" itself and "mercurial" by dependency 在这种情况下,将自行安装“ mercurial-ssh”和“ mercurial”

yum --enablerepo=rpmforge-extras install mercurial-ssh yum --enablerepo = rpmforge-extras安装Mercurial-ssh

You can install "mercurial" package only 您只能安装“ Mercurial”软件包

yum --enablerepo=rpmforge-extras install mercurial yum --enablerepo = rpmforge-extras安装程序

After you download mercurial from its website : 从其网站下载mercurial之后:
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... 然后双击它,它应该安装...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM