--unlink package-id
Unlinks (removes) each file referenced by package-id. WARNING: This command makes no attempt to perform reference counting or dependency analy-
sis. It can easily remove files required by your system. It may include unexpected files due to package tainting. Use the --files command first
to double check.
这个有效:
说明: 它列出所有链接,删除
@
字符,然后删除它们。如果使用PKG安装程序安装,则可以执行以下操作:
或者更好:
它将输出如下内容:
现在可以选择要取消链接(删除)的包。
这是取消链接文档:
在我的示例中,您将键入
或一行:
重要提示:从Lion开始,unlink不再可用(从2014年第一季度起,将包括Lion、Mountain Lion和Mavericks)。如果任何人来这里的指示尝试使用它与狮子,应该尝试改为这篇文章所说的:https://wincent.com/wiki/Uninstalling_packages_(.pkg_files)_on_Mac_OS_X
不要试图删除任何苹果提供的系统Python,它们位于
/System/Library
和/usr/bin
中,因为这可能会破坏整个操作系统。注意:下面列出的步骤不会影响Apple提供的系统Python2.7;它们只删除第三方Python框架,就像python.org installers安装的那样。
完整的列表是documented here。基本上,你需要做的就是:
删除第三方Python2.7框架
删除Python2.7应用程序目录
在
/usr/local/bin
中删除指向此Python版本的符号链接。看他们用然后运行以下命令以删除所有链接:
如有必要,请编辑shell配置文件以删除将
/Library/Frameworks/Python.framework/Versions/2.7
添加到PATH
环境文件中的操作。根据您使用的shell,可能修改了以下任何文件:~/.bash_login
,~/.bash_profile
,~/.cshrc
,~/.profile
,~/.tcshrc
,和/或~/.zprofile
。相关问题 更多 >
编程相关推荐