I was reading this old post because I want to download a homebrew package without using brew : How to download a binary from brew without installing brew? but I'm stuck so I try to ask too.
I'm on homebrew formulae web page : https://formulae.brew.sh/formula/
So, I want to install the package
tcl-tk to use
Tkinter on my Mac (or any other package) so I search for it from search bar : https://formulae.brew.sh/formula/tcl-tk#default
My binary location on internet is written inside JSON file at : https://formulae.brew.sh/api/formula/tcl-tk.json
Now I need to download binary files linked in
JSON file (3rd line in this case) :
I think these must be placed somewhere inside
/usr/local/Cellar/. For example I know that my binaries location should be something like :
Now, the question is : should I copy them there with a
cp -R <package-name> /usr/local/Cellar/ or there is an installer somewhere that I can/must use? I think just copy them there isn't enough but maybe I'm wrong. Any suggestion?