Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

cd ~/tmp

wget http://kernel.org/pub/software/scm/git/git-1.7.0.6.tar.gz

tar -xzvf git-1.7.0.6.tar.gz
cd git-1.7.0.6.tar.gz
./configure
sudo make
sudo make install

Now, how can I completely uninstall it?

share|improve this question

migrated from stackoverflow.com 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

2 Answers 2

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
1  
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
1  
Don't forget about .gitconfig in ~ –  Zack May 5 '10 at 14:17

Your Answer

 
discard

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.