On Mac os needs developer Command Line Tools
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrunxcrun:Example usage: brew search [text|/regex/] brew (info|home|options) [formula…] brew install formula… brew update brew upgrade [formula…] brew uninstall formula… brew list [formula…] Troubleshooting: brew config
brew config HOMEBREW_VERSION: 3.4.11 ORIGIN: https://github.com/Homebrew/brew HEAD: 30e3d8883cde265cbc16ff94b49a3ac14137590e Last commit: 6 weeks ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 343c0af7ac2f629f4ec1295c3ef965fcc17f1a6d Core tap last commit: 2 weeks ago Core tap branch: master HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.2HaBRV9xeY/org.xquartz:0 HOMEBREW_MAKE_JOBS: 8 Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: octa-core 64-bit arm_firestorm_icestorm Clang: 13.1.6 build 1316 Git: 2.32.1 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 7.79.1 => /usr/bin/curl macOS: 12.4-arm64 CLT: 13.4.0.0.1.1651278267 Xcode: 13.4.1 Rosetta 2: false |
eval "$(/opt/homebrew/bin/brew shellenv)"
to login profile which:PATH=/opt/homebrew/bin:/opt/homebrew/sbin:~/.bin:/usr/local/bin
and adds:
HOMEBREW_CELLAR=/opt/homebrew/Cellar
HOMEBREW_PREFIX=/opt/homebrew
HOMEBREW_REPOSITORY=/opt/homebrew
MANPATH=/opt/homebrew/share/man::
INFOPATH=/opt/homebrew/share/info:
brew doctor
brew install -vd formula
Developers:
brew create [URL [--no-fetch]]
brew edit [formula…]
https://github.com/Homebrew/brew/blob/master/docs/formula-Cookbook.md
Further help:
man brew
brew help [command]
brew home
brew help list
brew list, ls [options] [installed_formula|installed_cask …]
List all installed formulae and casks.
If formula is provided, summarise the paths within its current keg.
If cask is provided, list its artifacts.
--formula
--formulae only formulae, or treat arguments as formulae.> brew list formula
adns gdb gpg-agent libestr libksba nettle pkg-config sqlite
bdw-gc gdbm guile-unusedQQ libev libtasn1 nghttp2 pth tcl-tk
blueutil gettext htop libevent libtool npth python373 xz
c-ares gmp htop-osx libffi libunistring openssl python@3.9
coreutils gnupg influxdb libgcrypt libusb openssl@1.1 readline
dfu-util gnupg2 jemalloc libgpg-error libusb-compat p11-kit rsyslog
dirmngr gnutls libassuan libidn2 mpdecimal pinentry smartmontools
/Volumes/DATA/usr/local/bin/> brew list --formula influxdb
/usr/local/Cellar/influxdb/1.8.4/.bottle/etc/influxdb.conf
/usr/local/Cellar/influxdb/1.8.4/bin/influx
/usr/local/Cellar/influxdb/1.8.4/bin/influx_inspect
/usr/local/Cellar/influxdb/1.8.4/bin/influx_stress
/usr/local/Cellar/influxdb/1.8.4/bin/influx_tsm
/usr/local/Cellar/influxdb/1.8.4/bin/influxd
/usr/local/Cellar/influxdb/1.8.4/homebrew.mxcl.influxdb.plist
--cask
--casks only casks, or treat named arguments as casks.
-full-name Output fully-qualified names,
unless --full-name, --versions or pinned
-l, -r and -t
) are passed to ls
-versions
-multiple show formulae with multiple versions .
-pinned pinned formulae, or
See pin, unpin.
-1 one entry per line. default when output is not to a terminal.
-l long format. Has no effect when a formula or cask name is passed as an argument.
-r oldest first.(Reverse)
No effect when a formula or cask name is passed as an argument.
-t most recently first.
No effect when a formula or cask name is passed as an argument.
-d
--debug Display debugging information.
-q
--quiet quieter.
-v
--verbose verboser.
-h
--help
Second run