如何从我的Linux机器上完全卸载git [英] How do I completely uninstall git from my Linux Machine

查看:941
本文介绍了如何从我的Linux机器上完全卸载git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过下载tar球并执行以下步骤来安装git

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

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

make 

make install

但是运行这些命令后,我仍然看到在/usr/local下创建了git,如下所示:

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?

推荐答案

如果make unistall无效,如此处所述,请

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.

此外,'make -n'可能有助于确定所有已安装的文件.

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

这篇关于如何从我的Linux机器上完全卸载git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆