What does `/usr/local/Cellar/` directory contain?

I often found software installed under the directory /usr/local/Cellar/, such as:

/usr/local/Cellar/go/1.7.6
/usr/local/Cellar/minikube/1.23.2
...

What's the function of /usr/local/Cellar/ directory?

whether is brew installed softwares is understand it?


Solution 1:

/usr/local/Cellar is the directory into which Homebrew installs software packages (via brew install ...). The relevant files are afterwards linked to from /usr/local/bin etc.

Solution 2:

Homebrew installs software into /usr/local/Cellar by default and then symlinks it to /usr/local.

Extensive documentation is available at https://docs.brew.sh/