RHEL 6에 git을 어떻게 설치합니까?


12

RHEL6 개발 서버에 Git을 설치하려고하는데 Ubuntu에 대한 경험이 있지만 RHEL을 처음 사용합니다 (최근에 출발 한 Linux Sysadmin을 작성하려는 개발자입니다).

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

내가 읽은 대부분은 간단한 '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

git-daemon 등도 마찬가지입니다.

나는 repoforge에서 이것 과 같은 많은 git RPM을 추적 했지만 결코 끝나지 않는 종속성을 필요로합니다.

나는 또한 수동으로 컴파일하는 것을 가지고 놀았 지만 일을하기위한 토끼 구멍은 훨씬 더 깊어 보입니다.

EPEL 리포지토리에서 설치할 수없는 간단한 감독이 있다고 확신하지만, 나는이 모든 일에 신인입니다. 도움 / 포인터 / 추가 리소스에 미리 감사드립니다.

답변:


7

실제 배포에 대한 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

... 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.

이것은 분명히 의미가 있습니다. 실제로 repos / rpms에 대한 사전 경험이없는 RHEL 서버를 단편화해야했습니다. 다른 곳에서 너무 쉽게 만드는 것에 대한 책임. /etc/yum.repos.d/에는 rhel-source.repo, epel-testing.repo, epel.repo, ius.repo, redhat.repo가 ​​있습니다. epel *와 ius는 수동으로 만든 것이지만 서버 설치 후 이미 redhat과 rhel-source가있었습니다. 그것들이 당신이 언급 한 기본 저장소라고 가정하면, 그것들을 활성화시키는 가장 좋은 방법은 무엇입니까?
— JR.Xyza

연결 한 RPM은 내가 시도한 다른 것과 비슷합니다. 누락 된 종속성 (perl-Git 등) ... 이것은 기본 저장소가 잘못 구성 되었기 때문일 수 있습니까?
— JR.Xyza

이 서버에 RHEL 가입이 있습니까?
— ewwhite 2016 년

나는 우리가 믿습니다.
— JR.Xyza

3
repo 서브 스크립 션을 수정하려면이 서버의 RHN 관리 페이지로 이동하여 해당 채널을 구독하십시오. 그런 다음를 실행하십시오 rhn-check. 실패하면 RH로 티켓을여십시오. 당신은 결국 지원이 있습니다!
— MikeyB

1

이 시도:

# rpm -q git

이것으로 아무것도 반환되지 않으면 다음을 시도하십시오.

# yum clean all
# yum install git

또한 repos에 포함 / 제외 된 내용을 보려면 이것을 실행하십시오.

# grep -iE "^exclude|^include" /etc/yum.repos.d/*.repo
/etc/yum.repos.d/epel.repo:exclude=nagios-*
# 

업데이트 : (일명 다른 방법)

# rpm -ivh http://pkgs.repoforge.org/git/git-1.7.11.3-1.el6.rfx.x86_64.rpm
# 

클린 / 설치 시도시 주사위가없고 git 패키지를 찾을 수 없습니다. 제외 / 포함에 대한 grep 결과가 없습니다.
— JR.Xyza

업데이트 된 섹션을보십시오
— alexus

감사하지만 RPM 직접 다운로드 / 설치와 동일한 결과 (IE : 실패한 종속성)
— JR.Xyza

정확히 어떤 의존성입니까? (도 설치)
— alexus

목록에 너무 많지만 문제는 설치 오류로 인해 기본 Repo가 누락되었다는 것입니다. 시도해 주셔서 감사합니다!
— JR.Xyza
당사 사이트를 사용함과 동시에 당사의 쿠키 정책과 개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.