14.04 - How do I specify build-dep command to grab git version 2.10 - Ask Ubuntu
i have issue need execute following steps:
sudo apt-get update sudo apt-get install build-essential fakeroot dpkg-dev libcurl4-openssl-dev sudo apt-get build-dep git mkdir ~/git-openssl cd ~/git-openssl apt-get source git dpkg-source -x git_1.7.9.5-1.dsc cd git-1.7.9.5
for ubuntu 14.04 installation upgraded git version 2.10.2 when step (sudo apt-get build-dep git
) git package version 1.9.1. question simple. there way use build-dep
command version 2.10.2?
you have add latest ppa --enable-source
flag (source):
sudo add-apt-repository --enable-source ppa:git-core/ppa sudo apt-get update
you can find fork of full script used on ubuntu 14.04 server here:
#!/usr/bin/env bash # clear out previous attempts rm -rf "/tmp/source-git/" # add ppa latest git sudo add-apt-repository --enable-source ppa:git-core/ppa sudo apt-get update # dependencies git, openssl sudo apt-get install build-essential fakeroot dpkg-dev -y sudo apt-get build-dep git -y sudo apt-get install libcurl4-openssl-dev -y mkdir -p "/tmp/source-git/" cd "/tmp/source-git/" apt-get source git # need go git source directory # find -type f -name "*.dsc" -exec dpkg-source -x \{\} \; cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") pwd # change library 1 type other. sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control # compile time, itself, long. skips tests. @ own peril. sed -i -- '/test\s*=\s*test/d' ./debian/rules # build it. dpkg-buildpackage -rfakeroot -b -uc -us # install find .. -type f -name "git_*ubuntu*.deb" -exec sudo dpkg -i \{\} \;
i had installed git
last command gave me error missing dependencies liberror-perl
, following fixed me
sudo apt-get install liberror-perl sudo apt-get -f install find .. -type f -name "git_*ubuntu*.deb" -exec sudo dpkg -i \{\} \;
Comments
Post a Comment