[英]Unistall Vim Mac Os High Sierra 10.13.6
I don't know why I ever wanted to install it on my machine. 我不知道为什么要在计算机上安装它。 Please can someone help me unistall it? 请有人能帮我取消吗? Haven't found anywhere tips or resources on how to do that. 在任何地方都找不到有关该操作的提示或资源。
I have Homebrew installed and I have already tried 我已经安装了Homebrew,并且已经尝试过
brew uninstall --force vim
and 和
brew uninstall macvim
brew installs software in /usr/local/bin/
. brew将软件安装在/usr/local/bin/
。
In /usr/bin
(since OS X El Capitan) you can only find applications that have been shipped with macOS itself, so /usr/bin/vim
is part of the system and can't be uninstalled. 在/usr/bin
(自OS X El Capitan起)中,您只能找到macOS本身附带的应用程序,因此/usr/bin/vim
是系统的一部分,不能卸载。
Tools like brew or macports should use /usr/local
or /opt
to prefix their installation paths. brew或macports之类的工具应使用/usr/local
或/opt
为其安装路径添加前缀。
The whole /usr
directory except /usr/local
is under Integrity Protection , which means that you cannot change its content even with sudo
. /usr/local
以外的整个/usr
目录位于Integrity Protection下 ,这意味着即使使用sudo
也无法更改其内容。
[...]System Integrity Protection is designed to allow modification of these protected parts only by processes that are signed by Apple and have special entitlements to write to system files, such as Apple software updates and Apple installers.[...] [...] System Integrity Protection旨在仅允许由Apple签名并具有特殊权利以写入系统文件(例如Apple软件更新和Apple安装程序)的进程来修改这些受保护的部件。
System Integrity Protection includes protection for these parts of the system: 系统完整性保护包括对系统以下部分的保护:
- /System /系统
- /usr / usr
- /bin /箱
- /sbin / sbin
- Apps that are pre-installed with OS X 预先安装了OS X的应用
Paths and apps that third-party apps and installers can continue to write to include: 第三方应用程序和安装程序可以继续编写的路径和应用程序包括:
- /Applications /应用
- /Library /图书馆
- /usr/local / usr /本地
I don't know why I ever wanted to install it on my machine. 我不知道为什么要在计算机上安装它。
Well, it was already there so yeah, why did you install another one? 好吧,它已经在那里了,是的,为什么还要安装另一台呢?
Please can someone help me unistall it? 请有人能帮我取消吗?
We certainly can… if you tell us how you installed it as the exact method will be different if you installed it from source, via MacPorts, via homebrew, or any another method. 我们当然可以……如果您告诉我们如何安装它,因为从源,通过MacPorts,通过自制程序或任何其他方法安装它的确切方法将有所不同。 If you even installed it, that is. 如果您甚至安装了它,那就是。
FWIW, Vim has always been installed at /usr/bin/vim
on Mac OS X since forever. FWIW,永远以来,Vim一直安装在Mac OS X上的/usr/bin/vim
。 If $ ls -l /usr/bin/vim
ends with /usr/bin/vim
you can stop worrying now as your system is pretty much OK. 如果$ ls -l /usr/bin/vim
两端用/usr/bin/vim
,你现在可以停止令人担忧,因为你的系统是非常确定。 If not, show us the whole line so that we can go further. 如果没有,请向我们展示整个过程,以便我们走得更远。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.