如何卸载自制程序?

2023-11-25

我今天安装了 homebrew,但并不真正知道自己在做什么,现在我的 scikit-learn 包坏了。我想通过卸载自制软件来撤消所做的一切,并尝试按照此处的提示进行操作:https://github.com/Homebrew/homebrew/wiki/FAQ

但是,我认为自制程序安装到 /usr/bin/local 中,而不是 /usr/bin/ 中,所以我不确定是否可以使用链接中的说明。

当我最初安装自制程序时(ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"),我收到以下消息:

==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/lib/pkgconfig
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man7

我可以直接删除里面的文件吗

/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1

我害怕在卸载过程中搞砸一些东西。 顺便说一句,卸载自制程序是否会将我的系统恢复到以前的状态?我该怎么做呢?


这对我有用

官方酿造正在卸载 steps:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

But /usr/bin/ruby只是符号链接,以便找到您需要输入的 ruby

which ruby

这会给你/snap/bin/ruby

那么就用这个:

/snap/bin/ruby  -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何卸载自制程序? 的相关文章

随机推荐