Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I completely uninstall git from my Linux Machine

I had installed git by downloading the tar ball and then doing the following steps

./configure --prefix=/scratch/custom/git

make 

make install

But after running these commands, I still see that git is created under /usr/local as below

bash-4.1$ whereis git
git: /usr/bin/git /usr/local/git /usr/share/man/man1/git.1.gz

I would like to remove and reinstall again how do i do the same?

like image 790
raghuram gururajan Avatar asked Sep 30 '22 06:09

raghuram gururajan


1 Answers

If make unistall doesn't work, as mentioned here, uninstalling on linux, try make install again, capturing the output.

Then go through all of the install commands and manually remove the installed files.

Also, 'make -n` may help to determine all of the installed files.

like image 86
ash Avatar answered Oct 02 '22 13:10

ash