# Remove packaged Git sudo apt-get remove git-core # Install dependencies sudo apt-get install -y libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev build-essential # Download and compile from source cd /tmp curl --remote-name --progress https://www.kernel.org/pub/software/scm/git/git-2.16.1.tar.gz tar -xzf git-2.16.1.tar.gz cd git-2.16.1/ ./configure make prefix=/usr/local all # Install into /usr/local/bin sudo make prefix=/usr/local install
沒有留言:
張貼留言