{"thread":{"id":"53914","subject":"Trying to update GIT in Ubuntu 18.04","startedAt":"2020-07-23T20:12:51Z","lastAt":"2020-07-24T17:00:24Z","messageCount":4,"participants":["Matthew Glassman","Junio C Hamano","Taylor Blau","Peter van der Does"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"401957","messageId":"CAO-dU=fQZ6YVk1rWw_Tc8YT-i_zH7-hw3GATXmf7hwaqqC3j4Q@mail.gmail.com","threadId":"53914","inReplyTo":null,"subject":"Trying to update GIT in Ubuntu 18.04","fromName":"Matthew Glassman","fromEmail":"matthewglassman78@gmail.com","sentAt":"2020-07-23T20:12:22Z","receivedAt":"2020-07-23T20:12:51Z","isPatch":false,"sender":{"key":"matthewglassman78@gmail.com","avatar":null},"body":"My git version is listed as 2.17.1.  If I try to just do sudo apt\ninstall git..It will tell me I have the latest version and this is\nafter running apt update.  I can not get the PPA to work because there\nis no GPG Key to input and thus Ubuntu will automatically keep it from\nuse due to insecurity.  Can you please advise me on how to best update\nGIT to the current stable version please.\n\nRegards,\nMatthew\n"},{"id":"401965","messageId":"xmqqmu3pq5m5.fsf@gitster.c.googlers.com","threadId":"53914","inReplyTo":"CAO-dU=fQZ6YVk1rWw_Tc8YT-i_zH7-hw3GATXmf7hwaqqC3j4Q@mail.gmail.com","subject":"Re: Trying to update GIT in Ubuntu 18.04","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-07-23T21:33:06Z","receivedAt":"2020-07-23T21:33:14Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Matthew Glassman <matthewglassman78@gmail.com> writes:\n\n> My git version is listed as 2.17.1.  If I try to just do sudo apt\n> install git..It will tell me I have the latest version and this is\n> after running apt update.  I can not get the PPA to work because there\n> is no GPG Key to input and thus Ubuntu will automatically keep it from\n> use due to insecurity.  Can you please advise me on how to best update\n> GIT to the current stable version please.\n\nUnless installing from the source is an option, you are at the mercy\nof your distro packagers.  \n\nBut it shouldn't be hard if you are on a mainstream platforms (any\nrecent Linux certainly qualifies) to build and install from the\nsource.\n\n  https://github.com/git/git/blob/master/INSTALL\n\nUsing \"make --prefix=$HOME/gitstuff install install-doc\" and adding\n\"$HOME/gitstuff/bin\" early in the $PATH would let you use the one\nthat you built, without uninstalling what came from the distro\n(typically in /usr/bin).\n\n\n"},{"id":"402005","messageId":"20200724161309.GA13769@syl.lan","threadId":"53914","inReplyTo":"xmqqmu3pq5m5.fsf@gitster.c.googlers.com","subject":"Re: Trying to update GIT in Ubuntu 18.04","fromName":"Taylor Blau","fromEmail":"me@ttaylorr.com","sentAt":"2020-07-24T16:13:09Z","receivedAt":"2020-07-24T16:13:14Z","isPatch":false,"sender":{"key":"me@ttaylorr.com","avatar":"https://avatars.githubusercontent.com/u/301000140?v=4"},"body":"On Thu, Jul 23, 2020 at 02:33:06PM -0700, Junio C Hamano wrote:\n> Matthew Glassman <matthewglassman78@gmail.com> writes:\n>\n> > My git version is listed as 2.17.1.  If I try to just do sudo apt\n> > install git..It will tell me I have the latest version and this is\n> > after running apt update.  I can not get the PPA to work because there\n> > is no GPG Key to input and thus Ubuntu will automatically keep it from\n> > use due to insecurity.  Can you please advise me on how to best update\n> > GIT to the current stable version please.\n>\n> Unless installing from the source is an option, you are at the mercy\n> of your distro packagers.\n\n...especially on a long-term support release, like Ubuntu 18.04. I was\nskimming through the changelog for their version of 2.17.1 [1], and I\nwas glad to see that all of the recent security fixes that I could think\nof had been backported down to those tracks.\n\nIt's good to be on a modern version (and Junio provided some great\nadvice about how to build Git from source above), but if the best that\nyour distro provides is 2.17.1 with their backports on top, that's\npretty good, too.\n\n> But it shouldn't be hard if you are on a mainstream platforms (any\n> recent Linux certainly qualifies) to build and install from the\n> source.\n>\n>   https://github.com/git/git/blob/master/INSTALL\n>\n> Using \"make --prefix=$HOME/gitstuff install install-doc\" and adding\n> \"$HOME/gitstuff/bin\" early in the $PATH would let you use the one\n> that you built, without uninstalling what came from the distro\n> (typically in /usr/bin).\n\nThanks,\nTaylor\n\n[1]: http://changelogs.ubuntu.com/changelogs/pool/main/g/git/git_2.17.1-1ubuntu0.7/changelog\n"},{"id":"402007","messageId":"a34ec07c-650e-5410-dbfa-accdba2944b6@avirtualhome.com","threadId":"53914","inReplyTo":"CAO-dU=fQZ6YVk1rWw_Tc8YT-i_zH7-hw3GATXmf7hwaqqC3j4Q@mail.gmail.com","subject":"Re: Trying to update GIT in Ubuntu 18.04","fromName":"Peter van der Does","fromEmail":"peter@avirtualhome.com","sentAt":"2020-07-24T16:39:19Z","receivedAt":"2020-07-24T17:00:24Z","isPatch":false,"sender":{"key":"peter@avirtualhome.com","avatar":"https://avatars.githubusercontent.com/u/380071?v=4"},"body":"On 7/23/20 4:12 PM, Matthew Glassman wrote:\n> My git version is listed as 2.17.1.  If I try to just do sudo apt\n> install git..It will tell me I have the latest version and this is\n> after running apt update.  I can not get the PPA to work because there\n> is no GPG Key to input and thus Ubuntu will automatically keep it from\n> use due to insecurity.  Can you please advise me on how to best update\n> GIT to the current stable version please.\n>\n> Regards,\n> Matthew\n\n\nFor the latest version use the PPA, found here:\nhttps://launchpad.net/~git-core/+archive/ubuntu/ppa\n\n"}]}