在 Mojave 上卸载 macports

在 Mojave 上卸载 macports

我正在尝试卸载 Mac 上的 MacPorts,但发现协议这样做。但是,我收到一个错误:

user:~ femto-13$ sudo port -fp uninstall --follow-dependents installed
Password:
Error: Current platform "darwin 18" does not match expected platform "darwin 17"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
    while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch

建议的解决方案是安装新版本的 ports 和删除旧的

user:~ user-13$ sudo port -fp uninstall --follow-dependents installed
Password:
Error: No ports matched the given expression

现在原来推荐的命令甚至不起作用了。

有谁知道还能做些什么来摆脱 MacPorts?

答案1

该命令正在运行并告诉您没有安装端口。

如果您现在想删除基础,只需sudo rm -rf /opt/local(或您安装到的任何前缀。

相关内容