`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
包含安装的 casks 列表,每个 casks 中的 .metadata
文件夹提到安装期间使用的 casks 文件。
您在 ~/Applications
中看到的应用目录 不是 符号链接。如果是这样,请检查该应用程序的 cask 文件,它应该包含真实位置的线索。
此外,除了@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
。
哪个目录是brew cask install
使用的真实位置?
我想找到应用程序的真实位置,而不是 /Application
您可以在可用的 Casks 中找到每个应用程序的自定义命令,但通常 brew cask install
只是检索可执行文件的配置版本并将其移动到指定的应用程序目录 (~/Applications默认)。
/usr/local/Caskroom
包含安装的 casks 列表,每个 casks 中的 .metadata
文件夹提到安装期间使用的 casks 文件。
您在 ~/Applications
中看到的应用目录 不是 符号链接。如果是这样,请检查该应用程序的 cask 文件,它应该包含真实位置的线索。
此外,除了@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
。