本文介绍了如何使用macports进行干净的重新安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何完全重新安装端口,同时完全重新安装其所有依赖项?
How can one do a complete clean reinstall of a port and at the same time a complete clean reinstall of all its dependenceis?
推荐答案
从MacPorts Wiki(迁移):
From the MacPorts wiki (migration):
https://trac.macports.org/wiki/Migration
使用以下命令保存已安装端口的列表之后:
After having saved a list of installed ports using:
port -qv installed > myports.txt
并通过以下方式将其删除:
and having removed them with:
sudo port -f uninstall installed
下载并执行restore_ports脚本. (如果从源安装MacPorts并使用了自定义前缀,则在运行restore_ports.tcl
时需要使用-p
选项;请参阅./restore_ports.tcl -h
.)
Download and execute the restore_ports script. (If you installed MacPorts from source and used a custom prefix, then you'll need to use the -p
option when you run restore_ports.tcl
; see ./restore_ports.tcl -h
.)
curl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl
chmod +x restore_ports.tcl
sudo ./restore_ports.tcl myports.txt
这篇关于如何使用macports进行干净的重新安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!