5

是否有可能让阴谋集团

  • 下载特定的包源,包括所有依赖包源。
  • 在稍后阶段(当不再依赖互联网连接时)通过 cabal 从本地下载的文件中安装这些包,自动以正确的顺序构建所需的包?

我知道你可以用它cabal unpack来查看特定包的来源,但我不知道如何在上面实现。另请注意,在这篇文章Can't get cabal update to work insidecorporate network中提到可以这样做,但说明对我来说不够具体。

4

1 回答 1

3

cabal help | grep fetch

fetch        Downloads packages for later installation.

例子:

$ cabal fetch unbound
Resolving dependencies...
Downloading RepLib-0.5.3.1...
Downloading type-equality-0.1.1...
Downloading unbound-0.4.1.1...

在稍后阶段运行cabal install unbound将不需要 Internet 访问。

于 2013-01-01T19:23:15.140 回答