Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to install git on my Red Hat Enterprise Linux 6.5 server and have hit a brick wall. I can't find the package dependencies for git using yum.

    [root@FOOBAR mydir]# yum install curl-devel expat-devel gettext-devel \
    >   openssl-devel zlib-devel
    Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Setting up Install Process
    No package curl-devel available.
    No package expat-devel available.
    No package gettext-devel available.
    No package openssl-devel available.
    No package zlib-devel available.
    Error: Nothing to do

After reading a few forum posts, I found the EPEL package here, and installed it:

    [root@FOOBAR mydir]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    warning: /var/tmp/rpm-tmp.IlnMHM: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
    Preparing...                ########################################### [100%]
       1:epel-release           ########################################### [100%]

however even after this i still get the same error. can someone please help me out?

UPDATE: The output of yum repolist:

[root@FOOBAR ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id          repo name                                                status
epel             Extra Packages for Enterprise Linux 6 - x86_64           10,657
repolist: 10,657

UPDATE2: I changed the /i386/ to /x86_64/ because i erased the i386 one and replaced it with epel 64 bit repo.

share|improve this question
    
Can you post output of yum repolist? –  Gnouc Mar 27 at 1:26
    
Done, Also someone commented about a GPG key before, So I called wget http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 and then rpm --import ./RPM-GPG-KEY-EPEL-6 but got the same result. –  thenaglecode Mar 27 at 1:41

1 Answer 1

up vote 1 down vote accepted

It seems that you don't register with RHN, so you missed base repo for Redhat to work. You can not get Redhat official packages without register.

If you don't have RHN credential, you can use Centos base repo instead. See this link for more details.

share|improve this answer
1  
Just now told the OP the same in chat :) –  Ramesh Mar 27 at 2:04
    
I added the centos base repo from the link and now i can get all of my dependencies! thanks! –  thenaglecode Mar 27 at 2:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.