Re: upgarding GIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ævar Arnfjörð Bjarmason wrote:
On Mon, Aug 07 2017, James Wells jotted:
I am fairly new to git, however I have a challenge of upgrading git from 2.0.4 to 2.4.12 and my initial 2.0.4 install was done via TAR BALL on my server.

I have a centos server running git and Atlassian STASH and my challenge is for me to upgrade the STASH application I need to move to a newer version of git.

Which release of CentOS are you using James? And what git version is required for the Atlassian Stash (which is now called Bitbucket) release you're trying to use? IIRC, they support as far back as git 1.8?

You're going to want to install git via RPM/yum. CentOS already has a package for it.

Indeed. (But I'm biased because I would never, ever install software via 'sudo make install' on anything other than a throw-away test instance.)

The one problem folks run into on CentOS/RHEL is that the versions may be somewhat old. CentOS/RHEL 6 ships with git 1.7.1, for instance. CentOS/RHEL 7 is only a little newer, with git 1.8.3. There are "software collections" which provide git 1.9¹ and 2.9², but personally I've never liked using software collections for software that I need to integrate with other tools.

For users of CentOS/RHEL who want to run the current git release in a packaged form, the Fedora git package maintainers take care to ensure that the Fedora packages can be built for the current supported releases of CentOS/RHEL (6 & 7 at the moment). Grabbing the current code and/or srpm from Fedora should (almost³) always build cleanly using the mock build tool for CentOS/RHEL.

I also try to keep a semi-official COPR repo up to date, here:

   https://copr.fedorainfracloud.org/coprs/g/git-maint/git/

(Even as the primary maintainer of that repo, I'd still suggest that it's wise to either mirror it locally or rebuild the srpm's in your own infrastructure, to ensure that if the copr service is ever down you can reinstall important systems.)

¹ https://www.softwarecollections.org/en/scls/rhscl/git19/
² https://www.softwarecollections.org/en/scls/rhscl/rh-git29/
³ Right now, there's a slight issue building the current git for CentOS 7 because RHEL 7.4 moved the pcre2 package from EPEL into RHEL and CentOS 7.4 is not yet built. The Fedora packages are built against pcre2 now (thanks Ævar ;). So for a few weeks it won't be possible to build them for CentOS 7 without a minor change.

--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ocean, n. A body of water occupying about two-thirds of a world made
for man -- who has no gills.
   -- Ambrose Bierce, "The Devil's Dictionary"




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux