Trying to install GIT on CentOS 5 and lose a bit

I'm a little over the head with this, but I think you should start somewhere. I would like to use GIT on my dedicated server 1 and 1.

From what I read for a Google search, I had to create a file called: epel.repo that has this in it:

[epel] name=Extra Packages for Enterprise Linux 5 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL [epel-debuginfo] name=Extra Packages for Enterprise Linux 5 - $basearch - Debug #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux 5 - $basearch - Source #baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL gpgcheck=1 

And put it in this directory: /etc/yum.repos.d/

This worked fine, but I get a message that reads:

 GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL' 

Is there something I missed, like adding another file to the specified directory?

+7
source share
4 answers

Start by reading the EPEL documentation , not the random pages found through Google. The documentation tells you what you need to install so that everything can work.

The error you get is pretty clear. The repository definition you created includes:

 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL 

And I assume that the files do not exist on your system. You can specify this Google key name and set it manually, but it’s easier to follow the instructions of the EPEL project and just install the appropriate version of your epel-release package. This will give you the correct repository definitions and corresponding GPG keys.

0
source

You can solve this error by creating a file called "in the section" / etc / pki / rpm -gpg / ".

Go to rpm-gpg directory

 cd /etc/pki/rpm-gpg/ 

Download GPG KEYS from https://fedoraproject.org/keys

 wget https://fedoraproject.org/static/217521F6.txt 

Rename "217521F6.txt" to "RPM-GPG-KEY-EPEL"

 cp 217521F6.txt RPM-GPG-KEY-EPEL 

Delete "217521F6.txt" because we no longer need in this file

 rm 217521F6.txt 

If you want, you can remove the prefix lines from the file using vim and: wq (: Write and Quit)

 vim RPM-GPG-KEY-EPEL 

Try installing git git-daemon again

 yum install git git-daemon 

I believe that they will solve this error.

+37
source

A less condescending version of answer # 1: the epel-related page has rpm, which will magically do the tune for you. I am using CentOS 5.8, so I grabbed one for Enterprise Linux 5, EPEL5. Some window managers will just take care of the installation for you. Mine did. If necessary, run rpm, and then install it with the rpm -ivh file name. http://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F

+5
source

Those who worked with me right away

 ## RHEL/CentOS 6 64 Bit OS ## # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # rpm --import RPM-GPG-KEY.dag.txt 

This problem and so many of them will disappear !!

0
source

All Articles