我可以使用自制程序进行试运行以查看将安装什么以及如何安装的详细信息吗?
是否可以在详细模式下运行,实际上并不安装软件包,而只是安装软件包的位置和方式的详细信息?
Is it possible to run in a verbose mode where it doesn't actually install the package, but just details from where and how it will be install the package?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以运行
brew outdated
来查看运行brew Upgrade
时将升级的过时软件包列表。You can run
brew outdated
to see a list of outdated packages that will be upgraded when runningbrew upgrade
.您会发现最接近的是显示您尝试安装的软件包的依赖关系:
$brew deps ruby
将列出 ruby 的软件包。然后您可以使用:
$brew list
来查看您已经安装了哪些软件包。从这两个命令中,您将能够知道
brew install ruby
将安装哪些软件包The closest you'll find is to show the dependencies of the package you're trying to install:
$ brew deps ruby
Will list the packages of ruby. You can then use:
$ brew list
to see which packages you have installed. From these two commands, you will be able to tell which packages will be installed by
brew install ruby
brew install --dry-run
功能最近添加 。The
brew install --dry-run
feature was recently added.我过去经常使用gentoo linux,他们的portage系统有一个很好的“假装”选项来安装软件包,我发现的最接近的brew是:
brew list(软件包名称)
brew list ruby给了我:
但我猜您正在寻找比这更多的信息?
I've used gentoo linux quite a bit in the past, and their portage system has a nice 'pretend' option for installing packages, the closest I've found for brew is:
brew list (package name)
brew list ruby gives me:
But I'm guessing you're looking for more info than this?