我们能否在 Macports 的一个包中获取某些变体的(构建)依赖关系?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试:
port deps vim +huge +tcl
这应该列出所有依赖项。
Try:
port deps vim +huge +tcl
That should list all the dependencies.
更好的是:
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, whileand 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
如果您安装了 graphviz,则可以使用 https://trac.macports。 org/browser/users/eborisch/macports_utils/depTree.py 制作一张显示树的漂亮图片(什么需要什么)。
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).