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
How do I completely uninstall git from my Linux Machine
提问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/local
as 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 unistall
doesn't work, as mentioned here, uninstalling on linux, try make install
again, 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` 可能有助于确定所有已安装的文件。