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

Re: Trying to update GIT in Ubuntu 18.04

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 23, 2020, 21:33 UTC
Message-ID
<xmqqmu3pq5m5.fsf@gitster.c.googlers.com>
In-Reply-To
<CAO-dU=fQZ6YVk1rWw_Tc8YT-i_zH7-hw3GATXmf7hwaqqC3j4Q@mail.gmail.com>
Matthew Glassman <matthewglassman78@gmail.com> writes:
Show 6 quoted lines
> My git version is listed as 2.17.1.  If I try to just do sudo apt
> install git..It will tell me I have the latest version and this is
> after running apt update.  I can not get the PPA to work because there
> is no GPG Key to input and thus Ubuntu will automatically keep it from
> use due to insecurity.  Can you please advise me on how to best update
> GIT to the current stable version please.

Unless installing from the source is an option, you are at the mercy of your distro packagers.

But it shouldn't be hard if you are on a mainstream platforms (any recent Linux certainly qualifies) to build and install from the source.

  https://github.com/git/git/blob/master/INSTALL

Using "make --prefix=$HOME/gitstuff install install-doc" and adding "$HOME/gitstuff/bin" early in the $PATH would let you use the one that you built, without uninstalling what came from the distro (typically in /usr/bin).

Previous: Matthew GlassmanNext: Taylor Blau
Message 2 of 4 in “Trying to update GIT in Ubuntu 18.04”
  1. Matthew GlassmanJul 23, 2020
  2. Junio C HamanoJul 23, 2020
  3. Taylor BlauJul 24, 2020
  4. Peter van der DoesJul 24, 2020

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.