linux - 如何在从源代码安装的Linux上卸载git

标签 linux git installation

我已经使用以下命令在 RHEL-7 上安装了 git -

tar xzf git-2.0.1.tar.gz, cd git-2.0.1, 制作, 进行安装

基本上我想将版本升级到2.10,那么如何卸载现有的git? 如果我只删除 git-2.0.1 目录并对新版本执行相同的步骤会怎样?

最佳答案

您不需要卸载它,只需解压新版本,构建它并安装到同一位置即可。

但如果您仍然需要卸载它,您可以运行 make uninstall (如果包含源代码的文件夹仍然可用)或仅使用 git 删除文件夹(运行 which git,它将显示安装文件夹,例如 /use/local/bin~/bin/)。

关于linux - 如何在从源代码安装的Linux上卸载git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59563928/

相关文章:

git - 将一些更改从 Git 提交移动到单独的提交中

linux - Linux 上缺少标准库?

html - Linux 命令 shell : OverWriting Issue

php - 使用 wget 的多个 cron 作业

linux - '-rwxrwxrwx'中的连字符是什么意思

linux - linux 如何统计一个用户打开的文件数

git - 推送到 webroot 之上的托管项目

git - 如何让 git difftool 可以使用 gvim (gvimdiff)?

python - 在 Windows 上通过 PIP 安装 AWS CLI v2

linux - 在 Yocto 生成的图像中添加分区