3 ms·
This is the way to do it. Run "apt-get build-dep git" to install the build dependencies and the set "--prefix=$HOME/opt" or whatever on the configure script to
by dmm 11y ago
This is the way to do it. Run "apt-get build-dep git" to install the build dependencies and the set "--prefix=$HOME/opt" or whatever on the configure script to control where it's installed.
Installing parts of testing or ubuntu can serious mess up your system and have security consequences.
- icebraining 11y agoYou can also backport the package, it's usually rather easy; you should just need to add a deb-src line for the testing repository to sources.list and then run: apt-get update apt-get install build-essential fakeroot devscripts apt-get build-dep git apt-get -b source git The last line will download the source package and immediately compile it, generating a .deb file which you can then install: dpkg -i [package].deb
- voltagex_ 11y agoIt looks like git 2.8.0-rc3 is the newest in the Debian archives. https://tracker.debian.org/pkg/git https://tracker.debian.org/pkg/git will show when it's uploaded. It corresponds to commit 312e98e283ed7f62d72bb7ac07318285f1454c78 Author: Jonathan Nieder <jrn@google.com> Date: Wed Mar 16 18:28:22 2016 -0700 debian: new upstream release candidate Sidenote: I wonder how far I'd get simplifying the `devscripts` package/dependencies - your instructions will download 200+ megabytes of packages `--no-install-recommends` will do 160. Side sidenote: https://repo.or.cz/r/git/debian.git/ https://repo.or.cz/r/git/debian.git/ is listed as Debian's upstream source for git, yet it doesn't use a valid SSL certificate...
- tomlong 11y agoI think this is the way I will go, thank you.
- xorcist 11y agoDon't do this. You will regret installing untracked binaries, sooner or later. The package manager is there to help you. Don't work against it. Follow the other comments instead. If all you want is the latest version then pin it from unstable, otherwise install from source packages.