如何在 RHEL 6.2 上获取 git-all 元包

如何在 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元包。但是我幼稚地尝试这样做,却sudo yum install git-all告诉我没有包git-all

这是我的 yum 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

我可能错过了什么?

答案1

虚拟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)

当然,您想知道为什么您的 repo 安装失败。您是从 EL 6.2 还是 6.3 存储库中提取的?(很好奇,因为 6.2 比较旧,没有任何更新)。您也可以尝试yum clean all.

答案2

您错过了可选的存储库:

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]:

答案3

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

相关内容