Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Which directory is the real location that brew cask install uses?

I want to find the real location of app, not the symlink in /Application

like image 891
slideshowp2 Avatar asked Jul 22 '17 11:07

slideshowp2


People also ask

Where does Homebrew install packages on Mac?

On Mac Intel machines, that's all you need to do; Homebrew is ready to use. On Mac Intel, Homebrew installs itself into the /usr/local/bin directory, which is already configured for access by the shell with the macOS default $PATH environment variable (the default is set by the /usr/libexec/path_helper command).

Where does brew install packages Linux?

The installation script installs Homebrew to /home/linuxbrew/. linuxbrew using sudo if possible and within your home directory at ~/. linuxbrew otherwise. Homebrew does not use sudo after installation.

Where is brew binary installed?

The binaries are located at /usr/local/bin .

Where does brew install packages on Mac M1?

But if you install Homebrew on an M1 Mac running Apple Silicon, then Homebrew gets installed in /opt/homebrew/bin . Since /opt/homebrew/bin is not included in your PATH by default, there is some extra configuration needed to allow you to use packages installed with Homebrew.


1 Answers

You can find custom commands for each application amongst available Casks, but generally, brew cask install just retrieves the configured version of the executable file and moves it to the specified application directory (~/Applications by default).

/usr/local/Caskroom contains the list of casks installed, and .metadata folder in each cask mentions the cask file used during installation.

The app directory you see in ~/Applications is not a symlink. If it is so, check that app's cask file and it should contain clues to the real location.

like image 100
Subhash Avatar answered Sep 18 '22 15:09

Subhash