如何获得RHEL 6.2上的git-all元数据包

我相信我错过了一些常用的git插件,例如gitk ,我怀疑这是因为我安装了git

sudo yum install git

作为该包列表的信息:

  : The git rpm installs the core tools with minimal dependencies. To : install all git packages, including tools for integrating with : other SCMs, install the git-all meta-package. 

好的。 我想安装git-all meta-package。 然而,我天真的尝试这样做,用sudo yum install git-all告诉我没有包git-all

这是我的百胜repolist:

 repo id repo name status epel Extra Packages for Enterprise Linux 6 - x86_64 8,226 rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86 8,800 

我可以错过什么?

git-all虚拟软件包是基本存储库的一部分。 简短的回答: gitk是它自己的包。 yum install gitk

 [root@Davalan ~]# yum info git-all Available Packages Name : git-all Arch : noarch Version : 1.7.1 Release : 2.el6_0.1 Size : 16 k Repo : base Summary : Meta-package to pull in all git tools URL : http://git-scm.com/ License : GPLv2 Description : Git is a fast, scalable, distributed revision control system with an : unusually rich command set that provides both high-level operations : and full access to internals. : : This is a dummy package which brings in all subpackages. 

运行yum install git-all应该解决这些依赖关系。 在捏,你可以确保你有以下安装:

 Dependencies Resolved ==================================================================================================================== Package Arch Version Repository Size ==================================================================================================================== Installing: git-all noarch 1.7.1-2.el6_0.1 base 16 k Installing for dependencies: cvsps x86_64 2.2-0.6.b1.el6 base 56 k emacs-common x86_64 1:23.1-21.el6_2.3 base 18 M emacs-git noarch 1.7.1-2.el6_0.1 base 40 k emacs-nox x86_64 1:23.1-21.el6_2.3 base 1.9 M git-cvs noarch 1.7.1-2.el6_0.1 base 84 k git-email noarch 1.7.1-2.el6_0.1 base 41 k git-gui noarch 1.7.1-2.el6_0.1 base 216 k git-svn noarch 1.7.1-2.el6_0.1 base 95 k gitk noarch 1.7.1-2.el6_0.1 base 132 k perl-Authen-SASL noarch 2.13-2.el6 base 51 k perl-DBI x86_64 1.609-4.el6 base 705 k perl-GSSAPI x86_64 0.26-5.el6 base 64 k perl-Net-SMTP-SSL noarch 1.01-4.el6 base 8.1 k perl-TermReadKey x86_64 2.30-13.el6 base 31 k subversion-perl x86_64 1.6.11-7.el6 base 796 k Transaction Summary ==================================================================================================================== Install 16 Package(s) 

当然,你想知道为什么你的回购安装不成功。 你是从EL 6.2还是6.3版本仓库中取出? (好奇,因为6.2比较老,没有任何更新)。 你也可以尝试一个yum clean all

您错过了可选的存储库:

 rhn-channel --add --channel=rhel-x86_64-server-optional-6 

一旦你添加了这个频道,你会发现git-allgit-svn包。

 [root@ls406135 ~]# yum install git-svn Loaded plugins: rhnplugin This system is receiving updates from RHN Classic or RHN Satellite. ... ======================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================== Installing: git-svn noarch 1.7.1-3.el6_4.1 rhel-x86_64-server-optional-6 95 k Installing for dependencies: perl-TermReadKey x86_64 2.30-13.el6 core-0 31 k subversion-perl x86_64 1.6.11-12.el6_6 rhel-x86_64-server-optional-6 797 k Updating for dependencies: git x86_64 1.7.1-3.el6_4.1 rhel-x86_64-server-6 4.6 M perl-Git noarch 1.7.1-3.el6_4.1 rhel-x86_64-server-6 28 k subversion x86_64 1.6.11-12.el6_6 rhel-x86_64-server-6 2.3 M Transaction Summary ======================================================================================================================================================================== Install 3 Package(s) Upgrade 3 Package(s) Total download size: 7.8 M Is this ok [y/N]: 

您需要先激活机器的订购权利,然后才能从Red Hat Enterprise Linux存储库安装软件。 如果您认为该机器的订阅激活,请联系Red Hat获取支持。