git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Trying to update GIT in Ubuntu 18.04
@ 2020-07-23 20:12 Matthew Glassman
  2020-07-23 21:33 ` Junio C Hamano
  2020-07-24 16:39 ` Peter van der Does
  0 siblings, 2 replies; 4+ messages in thread
From: Matthew Glassman @ 2020-07-23 20:12 UTC (permalink / raw)
  To: git

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.

Regards,
Matthew

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trying to update GIT in Ubuntu 18.04
  2020-07-23 20:12 Trying to update GIT in Ubuntu 18.04 Matthew Glassman
@ 2020-07-23 21:33 ` Junio C Hamano
  2020-07-24 16:13   ` Taylor Blau
  2020-07-24 16:39 ` Peter van der Does
  1 sibling, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2020-07-23 21:33 UTC (permalink / raw)
  To: Matthew Glassman; +Cc: git

Matthew Glassman <matthewglassman78@gmail.com> writes:

> 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).



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trying to update GIT in Ubuntu 18.04
  2020-07-23 21:33 ` Junio C Hamano
@ 2020-07-24 16:13   ` Taylor Blau
  0 siblings, 0 replies; 4+ messages in thread
From: Taylor Blau @ 2020-07-24 16:13 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Matthew Glassman, git

On Thu, Jul 23, 2020 at 02:33:06PM -0700, Junio C Hamano wrote:
> Matthew Glassman <matthewglassman78@gmail.com> writes:
>
> > 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.

...especially on a long-term support release, like Ubuntu 18.04. I was
skimming through the changelog for their version of 2.17.1 [1], and I
was glad to see that all of the recent security fixes that I could think
of had been backported down to those tracks.

It's good to be on a modern version (and Junio provided some great
advice about how to build Git from source above), but if the best that
your distro provides is 2.17.1 with their backports on top, that's
pretty good, too.

> 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).

Thanks,
Taylor

[1]: http://changelogs.ubuntu.com/changelogs/pool/main/g/git/git_2.17.1-1ubuntu0.7/changelog

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Trying to update GIT in Ubuntu 18.04
  2020-07-23 20:12 Trying to update GIT in Ubuntu 18.04 Matthew Glassman
  2020-07-23 21:33 ` Junio C Hamano
@ 2020-07-24 16:39 ` Peter van der Does
  1 sibling, 0 replies; 4+ messages in thread
From: Peter van der Does @ 2020-07-24 16:39 UTC (permalink / raw)
  To: git

On 7/23/20 4:12 PM, Matthew Glassman wrote:
> 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.
>
> Regards,
> Matthew


For the latest version use the PPA, found here:
https://launchpad.net/~git-core/+archive/ubuntu/ppa


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-24 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23 20:12 Trying to update GIT in Ubuntu 18.04 Matthew Glassman
2020-07-23 21:33 ` Junio C Hamano
2020-07-24 16:13   ` Taylor Blau
2020-07-24 16:39 ` Peter van der Does

git@vger.kernel.org list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ https://public-inbox.org/git \
		git@vger.kernel.org
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.version-control.git
	nntp://ie5yzdi7fg72h7s4sdcztq5evakq23rdt33mfyfcddc5u3ndnw24ogqd.onion/inbox.comp.version-control.git
	nntp://4uok3hntl7oi7b4uf4rtfwefqeexfzil2w6kgk2jn5z2f764irre7byd.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git