Home » Questions » Computers [ Ask a new question ]

How to upgrade Git on Ubuntu Hardy?

How to upgrade Git on Ubuntu Hardy?

I have Git version 1.5.4.3 installed, but I think this must be an old version. I'm running Ubuntu Hardy 8.04. I need to install at least version 1.6 to get a Git GUI to work. How do I upgrade my installation?

Asked by: Guest | Views: 250
Total answers/comments: 5
Guest [Entry]

"I used the PPA for Ubuntu Git Maintainers to update Git from 1.5.4.3 on Hardy to 1.6.5.2.
No compiling, just add another entry to your sources list, apt-get update and you're good to go.

launchpad.net/~git-core/+archive/ppa

More info on the page (Technical details > Read about installing).

Or just run:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git"
Guest [Entry]

"This tutorial worked great for me. Here's what you should do:

Download the newest version from the Git website to your home directory and extract it.

Open up the terminal and enter the following commands (one at a time):

sudo apt-get remove git git-svn
sudo apt-get build-dep git-core
cd git-1.6.5/ (or whatever version you downloaded and extracted)
./configure
make
sudo make install

You should now have the newest version of Git installed."
Guest [Entry]

"Git 1.6 is available starting with Jaunty: launchpad.net/ubuntu/+source/git-core

So if you don't want to compile/install the package yourself, you'll need to upgrade your system to a newer ubuntu version."
Guest [Entry]

"I did this on Hardy with the following commands:

wget http://www.backportsdotorg/debian/pool/main/g/git-core/git-core_1.6.3.3-1~bpo50+1_i386.deb
sudo dpkg -i git-core_1.6.3.3-1~bpo50+1_i386.deb

If somebody knows some reason not to do it this way, please comment."
Guest [Entry]

"First thing, try running the software update utility and see if it's got a new version for you. Alternatively, as root,

apt-get update && apt-get upgrade

If that fails, you could try finding a backported version of git such as this one

If that for whatever reason does not work for you, you could download the source files from the git webpage. Ensure you have build-essential installed ---

apt-get install build-essential

and then if it is anything like any other reasonable package,

./configure --prefix=/usr/local && make && sudo make install"