下载MacPorts依赖关系而不安装 [英] Downloading MacPorts dependencies without installing

查看:132
本文介绍了下载MacPorts依赖关系而不安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认的MacPorts安装会下载每个依赖项,构建并安装它,然后下载,构建和安装下一个依赖关系等等。这意味着在整个安装过程中需要一个恒定的网络连接。在我的配置中,恒定的网络连接是不可行的。这意味着安装大型依赖软件包可能需要很长时间。

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.

如何在开始时下载指定的MacPorts软件包的所有依赖项(连接到网络),然后构建和安装每个依赖项(不需要网络连接)?

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)?

推荐答案

连接到网络时,请使用:

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:是所有包的依赖关系的递归列表。 clean命令删除以前的任何构建的包或其依赖项。

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.

这篇关于下载MacPorts依赖关系而不安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆