How do I completely uninstall git from my Linux Machine

China☆狼群 提交于 2020-07-20 17:27:38

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/27324652/how-do-i-completely-uninstall-git-from-my-linux-machine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!