繁体   English   中英

`brew cask install` 使用的真实位置是哪个目录?

[英]Which directory is the real location that `brew cask install` uses?

brew cask install使用的真实位置是哪个目录?

我想找到应用程序的真实位置,而不是/Application的符号链接

您可以在可用的Casks 中找到每个应用程序的自定义命令,但通常, brew cask install只会检索可执行文件的配置版本并将其移动到指定的应用程序目录(默认为 ~/Applications )。

/usr/local/Caskroom包含已安装的木桶列表,每个木桶中的.metadata文件夹提到了安装过程中使用的木桶文件。

您在~/Applications看到的应用程序目录不是符号链接。 如果是这样,请检查该应用程序的桶文件,它应该包含真实位置的线索。

此外,除了@Subhash Bhushan 解释的内容之外,如果您想知道公式的确切安装位置,可以使用命令info

brew cask info formula

例如对于原子:

brew cask info atom

atom: 1.32.2 (auto_updates)
https://atom.io/
/usr/local/Caskroom/atom/1.32.2 (64B)
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/atom.rb
==> Name
Github Atom
==> Artifacts
Atom.app (App)
/Users/username/Applications/Atom.app/Contents/Resources/app/apm/bin/apm (Binary)
/Users/username/Applications/Atom.app/Contents/Resources/app/atom.sh -> atom (Binary)

在此示例中,工件安装在~/Appplications

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM