我正在尝试在 RHEL6 开发服务器上安装 Git,我有使用 Ubuntu 的经验,但这是我第一次使用 RHEL(我是一名开发人员,试图填补最近离职的 Linux 系统管理员的职位)。
我已经为 Magento 安装所需的其他软件包设置了两个额外的存储库(EPEL 和 IUS)。yum repolist 的输出:
[root@box]# yum repolist
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
repo id repo name status
epel Extra Packages for Enterprise Linux 6 - x86_64 7,841
ius IUS for RHEL 6Server - x86_64 135
Run Code Online (Sandbox Code Playgroud)
我读过的大部分内容都表明一个简单的“yum install git”应该在启用 EPEL 的情况下工作,但我感到害怕
[root@box]# yum install git
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package git available.
Error: Nothing to do
Run Code Online (Sandbox Code Playgroud)
git-daemon 等也是如此。
我已经在 repoforge找到了许多 git RPM,例如这个,但它们需要一系列似乎永远不会结束的依赖项。
我也尝试过手动编译它,但是让工作变得更深的兔子洞似乎更深了。
我确信有一个简单的疏忽使我无法从 EPEL 存储库进行安装,但我在这方面是个菜鸟。提前感谢您的帮助/指针/其他资源。
实际发行版的 YUM 存储库存在问题……根据您的yum repolist
命令输出,您似乎没有“基本”存储库。我想你也可以下载它......
[root@Kitteh ~]# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: xt.lol.net
* epel: mirror.cogentco.com
* extras: xt.lol.net
* update: xt.lol.net
repo id repo name status
base CentOS-6 - Base 6346
epel Extra Packages for Enterprise Linux 6 - x86_64 7858
extras CentOS-6 - Extras 4
rpmforge Red Hat Enterprise 6 - RPMforge.net - dag 4445
update CentOS-6 - Updates 665
Run Code Online (Sandbox Code Playgroud)
...并证明 GIT 是基础存储库的一部分...
[root@Kitteh ~]# yum info git
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: xt.lol.net
* epel: mirror.cogentco.com
* extras: xt.lol.net
* update: xt.lol.net
Installed Packages
Name : git
Arch : x86_64
Version : 1.7.1
Release : 2.el6_0.1
Size : 15 M
Repo : installed
From repo : anaconda-CentOS-201112091719.x86_64
Summary : Fast Version Control System
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.
:
: 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.
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
48789 次 |
最近记录: |