git彻底卸载重装_我如何从Linux机器上完全卸载git

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?

解决方案

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.

你可能感兴趣的:(git彻底卸载重装)