bash 如何从我的 Linux 机器上完全卸载 git

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27324652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 11:57:03  来源:igfitidea点击:

How do I completely uninstall git from my Linux Machine

linuxgitbashgithubgit-svn

提问by raghuram gururajan

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

我已经通过下载 tar ball 安装了 git,然后执行以下步骤

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

make 

make install

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

但是在运行这些命令后,我仍然看到 git 是在/usr/local下面创建的

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?

我想删除并重新安装,我该怎么做?

回答by ash

If make unistalldoesn't work, as mentioned here, uninstalling on linux, try make installagain, capturing the output.

如果make unistall不起作用,如这里所述,在 linux 上卸载,再试make install一次,捕获输出。

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.

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