How to install homebrew on M1 mac

Homebrew installation on apple silicon, step by step: Open a terminal window (it should be zsh) Run this command: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” In my case, installation show me errors, I just installed again, and then show: Installation successful!, and warning: /opt/homebrew/bin is not in your PATH Then create .zshrc on home directory (If … Read more

How can I brew link a specific version?

This is probably the best way as of 11.1.2022: To install a specific version, e.g. postgresql 9.5 you simply run: $ brew install postgresql@9.5 To list the available versions run a search with @: $ brew search postgresql@ ==> Formulae postgresql postgresql@11 postgresql@13 postgresql@9.5 qt-postgresql postgresql@10 postgresql@12 postgresql@9.4 postgresql@9.6 postgrest ==> Casks navicat-for-postgresql DEPRECATED in … Read more

Understand homebrew and keg-only dependencies

For a software to be “keg-only” means it is installed in /usr/local/Cellar but not linked into places like /usr/local/bin, /usr/local/lib, etc. That means other software that depends on it has to be compiled with specific instructions to use the files in /usr/local/Cellar. That’s done automatically by brew install when a formula specifies keg-only dependencies. Formulas … Read more

Homebrew: Error: update-report should not be called directly

brew upgrade will upgrade all installed packages. If you need to maintain a specific version of any binary, consider using @thanh-hải’s answer: https://stackoverflow.com/a/38464247/868724 I just got this error. I ran brew upgrade and then brew update again and the problem seemed to resolve itself. Alternatively, try just running brew update again as suggested by @ashley-willis.

Brew update failed: untracked working tree files would be overwritten by merge

You need to do the following: cd $(brew –prefix) rm Library/Formula/argp-standalone.rb rm Library/Formula/cocot.rb And then do the git fetch origin git reset –hard origin/master brew update Basically, to explain a bit more: cd $(brew –prefix) tells cd to change the directory to whatever brew –prefix will output. If you try executing brew –prefix command you … Read more

What is the difference between brew install XXX and brew cask install XXX

Homebrew-Cask is an extension to Homebrew to install GUI applications such as Google Chrome or Atom. It started independently but its maintainers now work closely with Homebrew’s core team. Homebrew calls its package definition files “formulae” (British plural for “formula”). Homebrew-Cask calls them “casks”. A cask, just like a formula, is a file written in a Ruby-based … Read more

What is the difference/usage of homebrew, macports or other package installation tools? [closed]

MacPorts is the way to go. Like @user475443 pointed, MacPorts has many many more packages. With brew you’ll find yourself trapped soon because the formula you need doesn’t exist. MacPorts is a native application: C + TCL. You don’t need Ruby at all. To install Ruby on Mac OS X you might need MacPorts, so … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)