我们能否在 Macports 的一个包中获取某些变体的(构建)依赖关系?

发布于 2024-10-09 18:17:56 字数 108 浏览 0 评论 0原文

Macports 在很多方面都有点帮助,我想知道我们可以在安装带有某些变体的软件包之前提前获取依赖项列表吗?

例如,如果我安装带有变体的 vim: +huge +tcl ,有什么依赖项?

Macports is kinda helpful in lots of way, and I am wondering can we get the dependency list in advance before we install a package with some variants?

For example, what dependencies if I install vim with variants: +huge +tcl ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

平生欢 2024-10-16 18:17:56

尝试:

port deps vim +huge +tcl

这应该列出所有依赖项。

Try:

port deps vim +huge +tcl

That should list all the dependencies.

岁月流歌 2024-10-16 18:17:56

更好的是:

port rdeps vim +huge +tcl

这会递归地列出所有依赖项,即它还列出依赖项的依赖项,而 port deps 仅列出 vim 的依赖项。

如果只想列出尚未安装的依赖项:

port list rdepof:vim +huge +tcl and notinstalled

rdepof:vim +huge +tcl 的意思vim 的递归依赖项,而 and notinstalled 会过滤掉您已经获得的软件包。

或者,您可以执行“试运行”安装。这意味着遵循确切的安装过程,只是没有实际构建和安装软件包。

port -y 安装 vim +huge +tcl

Even better:

port rdeps vim +huge +tcl

This recursively lists all dependencies, i.e. it also lists the dependencies of the dependencies, whereas port deps only lists the dependencies of vim.

If you only want to list the dependencies that you haven't yet installed:

port list rdepof:vim +huge +tcl and not installed

rdepof:vim +huge +tcl means the recursive dependencies of vim, while and not installed filters out the packages you already got.

Alternatively, you can perform a "dry run" installation. This means that the exact installation procedure is followed, only without actually building and installing the packages.

port -y install vim +huge +tcl

憧憬巴黎街头的黎明 2024-10-16 18:17:56

如果您安装了 graphviz,则可以使用 https://trac.macports。 org/browser/users/eborisch/macports_utils/depTree.py 制作一张显示树的漂亮图片(什么需要什么)。

./depTree.py 'vim +huge+tcl'

If you have graphviz installed, you can use https://trac.macports.org/browser/users/eborisch/macports_utils/depTree.py to make a pretty picture showing the tree (what requires what).

./depTree.py 'vim +huge+tcl'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文