gpt4 book ai didi

macos - 如何在不升级依赖项的情况下使用 “port install”?

转载 作者:行者123 更新时间:2023-12-01 12:45:58 25 4
gpt4 key购买 nike

关闭。这个问题是off-topic .它目前不接受答案。












想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。

8年前关闭。




Improve this question




由于越来越多的端口依赖于大量其他端口,并且这些端口经常升级,由于不必要的依赖关系升级,单个端口的安装可能需要很长时间。

当我安装新端口时,我可以以某种方式指定我不想升级现有依赖端口的 macports 吗?

就像是

sudo port install --no-deps portname  #  but this does not work

我检查了 macports 指南,尝试用谷歌搜索,我发现的最相似的问题是 Debian: How to use “apt-get install” without upgrading dependencies?我已经尝试过答案中的选项,但它不适用于 macports。

最佳答案

赞,马克!

我查看了 man port 中的端口选项我发现了以下令人惊讶的简单方法:

-n       don't upgrade dependencies (affects upgrade and install) 

-b binary-only mode (build and install from binary archives, ignore
source, abort if no archive available)

所以 port -bn install someport可以尝试作为最快的方法。

关于macos - 如何在不升级依赖项的情况下使用 “port install”?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15949299/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com