Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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/.
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!
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.