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 recently compiled and installed Git on a new install of Mac OS 10.6 but it didn't install the documentation.

I now realize I should've used the precompiled package offered here: http://code.google.com/p/git-osx-installer/downloads/list

How do I remove all the files that I added to my system using make install with the Git source code?

Edit: I've had similar problems in the past with other packages, too. For example, ./configure with the incorrect --prefix= or something. What's the general practice for removing unix packages?

share|improve this question
    
Have you tried make uninstall? Some makefiles support that. –  Nifle Sep 2 '10 at 19:21
    
make: *** No rule to make target uninstall'. Stop.` :( –  macek Sep 2 '10 at 19:33

1 Answer 1

make uninstall often works. If your makefile doesn't support that, then your best bet might be to run make -n install (which will list the steps that make install does without actually doing them) and manually reverse its steps.

You can also look at different distros' Git packages (such as Debian's) to see what files those packages install. You might have to adjust the paths a bit for an install from source, but it should give you a pretty good idea of what files need to be deleted. (Debian, for example, splits Git between several packages, so you might need to check the file lists for each.)

share|improve this answer
1  
Good answer. It is also worth checking the documentation to see if there is anything like a (semi-)official separate uninstall script or recipe (a common wiki/FAQ entry for well documented OSS projects is "how do I remove it", often linked from any articles on upgrading/moving an install if you can't find it directly) if there is no uninstall target in the makefile, before manually working back from make -n's output. –  David Spillett Dec 22 '10 at 11:44
    
Given so much output of make -n install for git, it is not applicable to manually reverse the installing steps. –  fossilet Nov 27 '13 at 6:27

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.