我可以使用自制程序进行试运行以查看将安装什么以及如何安装的详细信息吗?

发布于 2024-10-26 20:49:19 字数 51 浏览 1 评论 0原文

是否可以在详细模式下运行,实际上并不安装软件包,而只是安装软件包的位置和方式的详细信息?

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 技术交流群。

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

发布评论

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

评论(4

鱼忆七猫命九 2024-11-02 20:49:19

您可以运行 brew outdated 来查看运行 brew Upgrade 时将升级的过时软件包列表。

You can run brew outdated to see a list of outdated packages that will be upgraded when running brew upgrade.

无人问我粥可暖 2024-11-02 20:49:19

您会发现最接近的是显示您尝试安装的软件包的依赖关系:

$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

痴情换悲伤 2024-11-02 20:49:19

brew install --dry-run 功能最近添加

brew install --dry-run vim
==> Would install 1 formula:
vim
==> Would install 5 dependencies for vim:
lua berkeley-db perl libyaml ruby

The brew install --dry-run feature was recently added.

brew install --dry-run vim
==> Would install 1 formula:
vim
==> Would install 5 dependencies for vim:
lua berkeley-db perl libyaml ruby
好听的两个字的网名 2024-11-02 20:49:19

我过去经常使用gentoo linux,他们的portage系统有一个很好的“假装”选项来安装软件包,我发现的最接近的brew是:

brew list(软件包名称)

brew list ruby​​给了我:

/usr/local/Cellar/ruby/1.9.2-p0/bin/tilt
/usr/local/Cellar/ruby/1.9.2-p0/bin/testrb
/usr/local/Cellar/ruby/1.9.2-p0/bin/ruby
/usr/local/Cellar/ruby/1.9.2-p0/bin/ri
/usr/local/Cellar/ruby/1.9.2-p0/bin/rdoc
/usr/local/Cellar/ruby/1.9.2-p0/bin/rake
/usr/local/Cellar/ruby/1.9.2-p0/bin/rackup
/usr/local/Cellar/ruby/1.9.2-p0/bin/irb
/usr/local/Cellar/ruby/1.9.2-p0/bin/gem
/usr/local/Cellar/ruby/1.9.2-p0/bin/erb
/usr/local/Cellar/ruby/1.9.2-p0/include/ruby-1.9.1/ (21 files)
/usr/local/Cellar/ruby/1.9.2-p0/lib/libruby.1.9.1.dylib
/usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/ (998 files)
/usr/local/Cellar/ruby/1.9.2-p0/lib/ (3 other files)
/usr/local/Cellar/ruby/1.9.2-p0/share/man/ (5 files)
/usr/local/Cellar/ruby/1.9.2-p0/share/ri/ (9522 files)

但我猜您正在寻找比这更多的信息?

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:

/usr/local/Cellar/ruby/1.9.2-p0/bin/tilt
/usr/local/Cellar/ruby/1.9.2-p0/bin/testrb
/usr/local/Cellar/ruby/1.9.2-p0/bin/ruby
/usr/local/Cellar/ruby/1.9.2-p0/bin/ri
/usr/local/Cellar/ruby/1.9.2-p0/bin/rdoc
/usr/local/Cellar/ruby/1.9.2-p0/bin/rake
/usr/local/Cellar/ruby/1.9.2-p0/bin/rackup
/usr/local/Cellar/ruby/1.9.2-p0/bin/irb
/usr/local/Cellar/ruby/1.9.2-p0/bin/gem
/usr/local/Cellar/ruby/1.9.2-p0/bin/erb
/usr/local/Cellar/ruby/1.9.2-p0/include/ruby-1.9.1/ (21 files)
/usr/local/Cellar/ruby/1.9.2-p0/lib/libruby.1.9.1.dylib
/usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/ (998 files)
/usr/local/Cellar/ruby/1.9.2-p0/lib/ (3 other files)
/usr/local/Cellar/ruby/1.9.2-p0/share/man/ (5 files)
/usr/local/Cellar/ruby/1.9.2-p0/share/ri/ (9522 files)

But I'm guessing you're looking for more info than this?

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