Downloading MacPorts dependencies without installing

左心房为你撑大大i 提交于 2019-11-29 18:53:00

问题


The default MacPorts installation downloads each dependency, builds and installs it, then downloads, builds and installs the next dependency, and so on. This means that a constant network connection is required throughout the installation. In my configuration, a constant network connection is not feasible. This means that installation of a large-dependency package can take a very long time.

How do I download all dependencies for a specified MacPorts package at the beginning (while connected to the network) and then build and install each dependency (no network connection required)?


回答1:


While connected to the network, use:

port fetch rdepof:<packagename> <packagename>

Then, with no network connection required, use:

port clean rdepof:<packagename> <packagename>
port install <packagename>

rdepof: is a recursive list of all of the package's dependencies. The clean command removes any previous builds of the package or its dependencies.




回答2:


Use port fetch <packagename>.



来源:https://stackoverflow.com/questions/4755274/downloading-macports-dependencies-without-installing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!