I've just set up a new machine with Ubuntu Oneiric 11.10 and then run
apt-get update
apt-get upgrade
apt-get install git
Now if I run git --version
it tells me I have git version 1.7.5.4
but on my local machine I have the much newer git version 1.7.9.2
I know I can install from source to get the newest version, but I thought that it was a good idea to use the package manager as much as possible to keep everything standardized.
So is it possible to use apt-get
to get a newer version of git
, and what is the right way to do it?
sudo apt update
thensudo apt upgrade
and it should install the most recent version of git. At least it did in my case from v2.17.1 to v2.20.1 – Rockin4Life33 Jan 18 '19 at 23:51sudo apt-get install software-properties-common
to get theadd-apt-repository
command – Niko Fohr Jan 11 '23 at 18:08sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A1715D88E1DF1F24 40976EAF437D05B5 3B4FE6ACC0B21F32 A6616109451BBBF2
– Grant Humphries Sep 14 '23 at 22:53