Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Install git on CentOS
PostPosted: Fri Aug 08, 2008 8:55 am 
Offline
Senior Newbie

Joined: Wed Aug 06, 2008 3:29 pm
Posts: 12
Hi Guys,

There is supposed to be a yum package for it, but it doesn't show up in the list of packages. I tried compiling from source, but it didn't work.

Do I just need to specify a different repository or something? Is there any way to easily get git on my linode?

Thanks
~sean


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 9:00 am 
Offline
Junior Member

Joined: Tue May 20, 2008 3:00 am
Posts: 37
Adding this Repo : http://dag.wieers.com/rpm/ to Yum will give you easy access to a lot of popular rpm's including git :)


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 9:17 am 
Offline
Senior Newbie

Joined: Wed Aug 06, 2008 3:29 pm
Posts: 12
Thanks Navi,

I tried adding the repo, but I'm pretty new to this whole thing ...so... I created a .repo file in /etc/yum.repos.d, but the existing repos in there have more information than you've given me. Or can I just use the --enablerepo flag with the full url you included?

Anyway, the build instructions at this url worked

http://linux.yyz.us/git-howto.html


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 9:18 am 
Offline
Senior Newbie

Joined: Wed Aug 06, 2008 3:29 pm
Posts: 12
Just found an article that has all the info for the dag repository

http://zilkey.com/2008/3/5/installing-g ... centos-4-4


Top
   
 Post subject:
PostPosted: Fri Aug 08, 2008 11:19 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
These are comments I made to myself for installing rpmforge repository on my Centos machines. Covers both centos4 and centos5

http://wiki.centos.org/Repositories/RPMForge

Centos4: yum --enablerepo=extras install yum-plugin-priorities
Centos5: yum install yum-priorities

Make sure that yum-priorities is enabled by editing the
/etc/yum/pluginconf.d/priorities.conf
file, and ensuring that it contains the following lines:

[main]
enabled=1

(this should be the default)

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

wget http://apt.sw.be/redhat/el5/en/i386/RPM ... f.i386.rpm
wget http://apt.sw.be/redhat/el4/en/i386/RPM ... f.i386.rpm

rpm -K rpmforge-release-0.3.6-1.el5.rf.i386.rpm
(check signature)
rpm -i rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Edit the .repo files in /etc/yum.repos.d/ and set up priorities by adding
the line:
priority=N
to a repository entry, where N is an integer number from 1 to 99.

The recommended settings are:
[base], [addons], [updates], [extras] ... priority=1
[centosplus],[contrib] ... priority=2
Third Party Repos such as rpmforge ... priority=N
(where N is > 10 and based on your preference)

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group