git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: upgarding GIT

From
Todd Zullinger <tmz@pobox.com>
Date
Aug 7, 2017, 17:07 UTC
Message-ID
<20170807170745.GG25542@zaya.teonanacatl.net>
In-Reply-To
<871sonzlar.fsf@gmail.com>
Ævar Arnfjörð Bjarmason wrote:
Show 8 quoted lines
> 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"
Previous: Ævar Arnfjörð BjarmasonNext: James Wells
Message 3 of 5 in “upgarding GIT”
  1. James WellsAug 7, 2017
  2. Ævar Arnfjörð BjarmasonAug 7, 2017
  3. Todd ZullingerAug 7, 2017
  4. James WellsAug 7, 2017
  5. Bryan TurnerAug 17, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.