Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Git on Ubuntu Lucid (latest) manually as following.

cd ~/tmp


tar -xzvf git-
cd git-
sudo make
sudo make install

Now, how can I completely uninstall it?

share|improve this question

migrated from May 4 '10 at 20:38

This question came from our site for professional and enthusiast programmers.

are the contents of ~/tmp/git-1.7xxxxx still there? – hasen May 4 '10 at 19:21
You'll want to install packages through apt when possible. Ubuntu Lucid has the latest version of git in Apt as git-core. – Zack May 4 '10 at 22:11
@hasen, Yes the files are there in tmp. – Millisami May 5 '10 at 7:39
@Zack, initially I couldn't find the git-core in package manager. Then I installed it via source. Later when I changed the source to US server, then I see the git-core package. But I've already installed it via source, hence the problem. – Millisami May 5 '10 at 7:41

Use installwatch (aka checkinstall) to see what it actually installed, then delete the files. Note, this requires running make install again, just under installwatch.

Check, first to make sure an uninstall target does not exist (e.g try make uninstall). make help might also be of use.

Unless you really need a feature in a newer version of something that your distro packages (or unless they simply don't package it), its generally a good idea to install stuff using the package manager, for just this reason.

share|improve this answer
Installwatch runs on Windows - not sure it applies to Ubuntu. Also, I think it would have to be installed before git to be useful. – Mike Pelley May 4 '10 at 19:19
@Mike, thanks, wrong link. Updated. – Tim Post May 4 '10 at 19:21
Ah - that link is much better, and I hadn't seen it before so thanks ;o) – Mike Pelley May 4 '10 at 19:40
as @mike said, does this work after installing git? – Millisami May 5 '10 at 8:43
up vote 1 down vote accepted

I solved this with the following step:

sudo find /usr/local -depth -iname 'git*' -exec rm -rf {} \;

That deleted all the git related files. Then used the apt-get to install git-core.

The reason behind this trouble is:

share|improve this answer
As long as you haven't installed 'gitarHero' on your system... ;-) (PS: I know the spelling isn't correct) – Boldewyn May 5 '10 at 10:10
Don't forget about .gitconfig in ~ – Zack May 5 '10 at 14:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.