Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to install git in Ubuntu Lucid 10.04 LTS

I have installed Git using

sudo apt-get install git-core

after that when I try and run git I get

-bash: git: command not found.

I'm using Ubuntu 10.04 LTS.

like image 845
ziiweb Avatar asked Jun 23 '12 15:06

ziiweb


2 Answers

Just found in other source:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

This will install the latest stable git version. The Ubuntu's repository has the oldest one.

like image 73
Kostanos Avatar answered Sep 30 '22 19:09

Kostanos


I wouldn't install the package from Ubuntu itself, the git version will be 1.7.0.4

I recommend using my PPA as you will get the latest version, as I write this it would 1.7.11.1

To add my Ubuntu git repository to your system

sudo add-apt-repository ppa:pdoes/ppa

And then you can do sudo apt-get install git-core

For more info see my site : Git Packages for Ubuntu

like image 42
Peter van der Does Avatar answered Sep 30 '22 19:09

Peter van der Does