LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2013, 02:36 AM   #1
nitya
LQ Newbie
 
Registered: Feb 2013
Location: India
Distribution: RedHat, Cent, Fedora, Ubuntu
Posts: 21

Rep: Reputation: Disabled
Update GIT on CentOS


Hi All,
I want to upgrade GIT from 1.7.* to 1.8.1.2 or to latest git as in http://git-scm.com/downloads. Here are the O/S and current Git details
Code:
# cat /etc/redhat-release 
CentOS Linux release 6.0 (Final)
# file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
# git --version
git version 1.7.1
# yum install git
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
Setting up Install Process
Package git-1.7.1-2.el6_0.1.i686 already installed and latest version
Nothing to do
# yum update git
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
Setting up Update Process
No Packages marked for Update
# yum upgrade git
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
Setting up Upgrade Process
No Packages marked for Update
#
I am not able to update git using yum command, So is there any way that I can update git to latest version using eithter yum or rpm. Thanks in advance for your kind help and it would be really appreciated if you could provide the steps/links for git upgradation using yum or rpm.
 
Old 02-05-2013, 03:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
note that yum *IS* rpm with a little padding.

There are no git rpms that I can see online for el6 offhand. There is a 1.7.8 package on rfx http://pkgs.repoforge.org/git/ or 1.8.1.2 under fc19 rawhide http://mirror.bytemark.co.uk/fedora/...os/Packages/g/ but note taht this is very new code, and goes against the point of CentOS / RHEL by using untested potentially unstable / insecure code. outside of the rawhide rpm you could also build from source easily enough.
 
1 members found this post helpful.
Old 02-05-2013, 04:30 AM   #3
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Which means.. No update available for your current CentOs version.
Or you may try adding a new repo for rpms under your /etc/yum.repos.d/ .
 
2 members found this post helpful.
Old 02-05-2013, 04:54 AM   #4
nitya
LQ Newbie
 
Registered: Feb 2013
Location: India
Distribution: RedHat, Cent, Fedora, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thanks acid_kewpie,
I downloaded git-1.7.8.2-2.el6.rfx.x86_64.rpm from http://pkgs.repoforge.org/git/ and ran
Code:
# rpm -ivh git-1.7.8.2-2.el6.rfx.x86_64.rpm
but getting error as below
Code:
warning: git-1.7.8.2-2.el6.rfx.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
error: Failed dependencies:
	perl-Git = 1.7.8.2-2.el6.rfx is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libc.so.6()(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libc.so.6(GLIBC_2.2.5)(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libc.so.6(GLIBC_2.3)(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libc.so.6(GLIBC_2.3.4)(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libc.so.6(GLIBC_2.4)(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libc.so.6(GLIBC_2.7)(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libcrypto.so.10()(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libcurl.so.4()(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libexpat.so.1()(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libpthread.so.0()(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libssl.so.10()(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
	libz.so.1()(64bit) is needed by git-1.7.8.2-2.el6.rfx.x86_64
Then tried to install git-1.7.8.2-2.el6.rfx.i686.rpm and got the below error
Code:
# rpm -ivh git-1.7.8.2-2.el6.rfx.i686.rpm
warning: git-1.7.8.2-2.el6.rfx.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
error: Failed dependencies:
	perl-Git = 1.7.8.2-2.el6.rfx is needed by git-1.7.8.2-2.el6.rfx.i686
So tried to install perl-Git and found as package is already installed
Code:
# yum install perl-Git
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
Setting up Install Process
Package perl-Git-1.7.1-2.el6_0.1.noarch already installed and latest version
Nothing to do
#
Please let me know how can I upgrade git to latest version or please post the correct file that I have to install, because there are many files in http://pkgs.repoforge.org/git/.

Last edited by nitya; 02-05-2013 at 05:03 AM.
 
Old 02-05-2013, 05:00 AM   #5
nitya
LQ Newbie
 
Registered: Feb 2013
Location: India
Distribution: RedHat, Cent, Fedora, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RaviTezu View Post
Which means.. No update available for your current CentOs version.
Or you may try adding a new repo for rpms under your /etc/yum.repos.d/ .
Thanks for the reply RaviTezu,
I found below files under /etc/yum.repos.d/ directory.
Code:
# ls -ltrh /etc/yum.repos.d/
total 20K
-rw-r--r-- 1 root root  799 Apr 27  2012 webtatic.repo
-rw-r--r-- 1 root root 2.6K Jun 26  2012 CentOS-Vault.repo
-rw-r--r-- 1 root root  626 Jun 26  2012 CentOS-Media.repo
-rw-r--r-- 1 root root  637 Jun 26  2012 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 1.9K Jun 26  2012 CentOS-Base.repo
So to which file and what entry I have to add. Can you please explain little bit more.
 
Old 02-05-2013, 05:17 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
maybe you should think about what "latest" means here. Do you even have a reason to want to? What killer feature / security issue are you worried about?

if you added the rpmforge repo to yum then these dependencies would be dealt with, but unless you have a good reason to do this, go watch TV instead!
 
2 members found this post helpful.
Old 02-05-2013, 06:39 AM   #7
nitya
LQ Newbie
 
Registered: Feb 2013
Location: India
Distribution: RedHat, Cent, Fedora, Ubuntu
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thanks for your kind reply acid_kewpie,
The git updating reason is that the devolopers are getting sync error while setting up new repos and they have found, if git could get update to 1.8.* version the problem would be solved. Thats why I came here and begging your kind help in this regards. In ubuntu I could update it to 1.8.* version, but in Cent O/S getting error as already given above.

Could you please provide the steps to add rpmforge repo to yum?

Last edited by nitya; 02-05-2013 at 06:40 AM.
 
Old 02-05-2013, 07:08 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
The repoforge packages are only 1.7.8, so presumably they're no use to you?

FC18 updates looks to be the oldest, most stable 1.8 package which *may* work on el6 easily enough - http://mirror.bytemark.co.uk/fedora/...tes/18/x86_64/ try installing those if you want. It looks like you might actually only be running the 32bit versions of git at present though, so don't install x86_64 packages unless you're already on that architecture.
 
Old 02-05-2013, 07:27 AM   #9
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Forgive my ignorance, but: can't you git git?
 
Old 02-05-2013, 08:12 AM   #10
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
hi nitya,

http://slashsarc.com/2013/01/install...-rhel-5-and-6/

That link may help you.. Please dont try that on the production servers. Test it first on testing servers.
 
1 members found this post helpful.
Old 02-05-2013, 08:16 AM   #11
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Sorry!! Was Confused.

Last edited by RaviTezu; 02-05-2013 at 08:21 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 03:09 PM
how to use git auth by ldap and apache 2.2 on CentOS 5.5? phil_hou_cn Linux - Server 2 12-30-2010 03:03 AM
[SOLVED] installing git on centos 5.4 anand.arumug Linux - Software 1 03-11-2010 12:06 AM
How to upgrade git on CentOS 5 beyond the latest official release bart128 Linux - Distributions 4 02-25-2010 05:08 PM
installing GIT on centos 5 HelpMe2877 Linux - Server 2 06-26-2008 12:55 PM


All times are GMT -5. The time now is 08:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration