git package version

Issues related to applications and software problems
Post Reply
Al_Stu
Posts: 52
Joined: 2010/09/14 21:05:16

git package version

Post by Al_Stu » 2017/04/21 07:13:04

The git version 1.8.3.1 packaged in the CentOS 7.3 repository is 4 years old. Git is now at 2.12.2. When will the CentOS repository be updated with a newer git version package?

There are new and improved capabilities available. Such as for shallow cloning. Which is very useful for working with large repositories.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: git package version

Post by TrevorH » 2017/04/21 10:31:34

It's quite rare for packages to get a major version bump in the lifetime of one major version (e.g 7.x). Redhat have a backporting policy page
https://access.redhat.com/security/updates/backporting/ that explains why.

You can install git from other sources too - the IUS Community repo has various git2u* packages available, there are git19* packages in the centos-sclo-rh repo (part of centos-release-scl).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: git package version

Post by MartinR » 2017/04/21 11:11:45

I was having to do this just yesterday. Within sclo there are two repositories: sclo and rh, therefore you need to install two release packages:

Code: Select all

yum install centos-release-scl centos-release-scl-rh
Once you've done this then you can:

Code: Select all

# yum list git19 sclo-git25 rh-git29
...
Available Packages
git19.x86_64                        1.2-4.el7                   centos-sclo-rh  
rh-git29.x86_64                     2.3-4.el7                   centos-sclo-rh  
sclo-git25.x86_64                   1.0-2.el7                   centos-sclo-sclo
Notwithstanding the odd release numbers, running yum info shows the git versions as 1.9.4, 2.9 and 2.5.0. Installation will pull in several packages including parts of httpd24 and perl.

If you've not used scl before now read the scl man page to find out how to switch.

Al_Stu
Posts: 52
Joined: 2010/09/14 21:05:16

Re: git package version

Post by Al_Stu » 2017/04/21 20:37:11

...we do sometimes provide version updates for some packages after careful testing and analysis. These are likely to be packages that have no interaction with others...
I think git fits this category. There have been significant improvements to git in the last 4 years. Would really like to see a new package. Where do we provide that feedback? Is that a RH thing or does CentOS do it's own repo packages?

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: git package version

Post by TrevorH » 2017/04/22 13:01:52

CentOS just repackages what RH ship as part of RHEL.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dawsonian2000
Posts: 2
Joined: 2017/08/02 13:09:30

Re: git package version

Post by dawsonian2000 » 2017/08/02 13:31:48

Hello everyone,

I am new to the forum and had a question regarding GIT version names. Currently, we are running GIT version 1.8.3 on our CentOS 7 server, but we want to go to version 2.11, since it is needed for bitbucket repository. In my search for version 2.11, I could not find a repository that was labeled GIT version 2.11 other than this one: git2u-perl-Git-2.11.0-1.ius.centos7.noarch.rpm. Can anyone tell me what the difference is between versions with the GIT and GIT2U names/ label, and whether or not the GIT2U version is actually the new version of GIT 2.11?

I look forward to any assistance to help in my understanding.

Thanks,
Mel

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: git package version

Post by TrevorH » 2017/08/02 13:45:42

The IUS Community repo is currently shipping

Code: Select all

git2u.x86_64                                     2.13.2-1.ius.centos7                                        ius     
git2u-all.noarch                                 2.13.2-1.ius.centos7                                        ius     
git2u-core.x86_64                                2.13.2-1.ius.centos7                                        ius     
git2u-core-doc.x86_64                            2.13.2-1.ius.centos7                                        ius     
git2u-cvs.noarch                                 2.13.2-1.ius.centos7                                        ius     
git2u-daemon.x86_64                              2.13.2-1.ius.centos7                                        ius     
git2u-debuginfo.x86_64                           2.13.2-1.ius.centos7                                        ius     
git2u-email.noarch                               2.13.2-1.ius.centos7                                        ius     
git2u-gitk.noarch                                2.13.2-1.ius.centos7                                        ius     
git2u-gitweb.noarch                              2.13.2-1.ius.centos7                                        ius     
git2u-gui.noarch                                 2.13.2-1.ius.centos7                                        ius     
git2u-p4.noarch                                  2.13.2-1.ius.centos7                                        ius     
git2u-perl-Git.noarch                            2.13.2-1.ius.centos7                                        ius     
git2u-perl-Git-SVN.noarch                        2.13.2-1.ius.centos7                                        ius     
git2u-svn.x86_64                                 2.13.2-1.ius.centos7                                        ius     
They suffix their package names with ${version}u to differentiate them from the CentOS supplied ones. Most likely they will be replacements not parallel installs so you will need to remove the CentOS supplied git packages to use the IUS ones.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dawsonian2000
Posts: 2
Joined: 2017/08/02 13:09:30

Re: git package version

Post by dawsonian2000 » 2017/08/02 17:25:11

Thanks for the clarification TrevorH! It is much appreciated.

Thanks again,
Mel

Post Reply