- macOS 용 패키지 관리도구
https://brew.sh/index_ko- Homewbrew cask
https://formulae.brew.sh/cask/- 설치환경
macOS Big Sur 11.5.1- MacOS 를 업무 및 개인 PC 용 운영체제로 사용하는 경우 유용한 CLI 도구들에 대한 기록
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
$ brew install [PACKAGE NAME]
% brew list
==> Formulae
gettext libidn2 libunistring openssl@1.1 telnet wget
$ brew uninstall [PACKAGE NAME]
% brew install telnet
==> Downloading https://ghcr.io/v2/homebrew/core/telnet/manifests/63
Already downloaded: /Users/leesj/Library/Caches/Homebrew/downloads/ebb0693e45dd88c5fcdfb111a1c31fa33ad26a50d1b9b1bc073f59a92e85df40--telnet-63.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/telnet/blobs/sha256:e6fb7de53e703755a72e227752f81023c2935567d935af638959e986da9
Already downloaded: /Users/leesj/Library/Caches/Homebrew/downloads/15f6f29e3c547b1f8e96be7aea3192448f4914b7021a0da225dfc75b4a0c0782--telnet--63.big_sur.bottle.tar.gz
==> Pouring telnet--63.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/telnet/63: 4 files, 174.7KB
% brew install wget
==> Downloading https://ghcr.io/v2/homebrew/core/gettext/manifests/0.21
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gettext/blobs/sha256:a025e143fe3f5f7e24a936b8b0a4926acfdd025b11d62024e3d355c106
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a025e143fe3f5f7e24a936b8b0a4926acfdd025b11d
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/0.9.10
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/blobs/sha256:5d336bd939f678b48dc1ced97ed0def383999638d80caa8cb2da7
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5d336bd939f678b48dc1ced97ed0def383999638d80
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libidn2/manifests/2.3.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libidn2/blobs/sha256:d21350f576f9b9cd0512149164622671b71854da69947183bc84e09a3a
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d21350f576f9b9cd0512149164622671b71854da699
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/manifests/1.1.1k
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/1.1/blobs/sha256:17d94c51ddfa8364baed5f3a754063e1ca75f807194f68d0b97661
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:17d94c51ddfa8364baed5f3a754063e1ca75f807194
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.21.1-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:277577a3a30ff9bf60d0e4b819570ca356aade39a3a5973065e89b0ad4b75
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:277577a3a30ff9bf60d0e4b819570ca356aade39a3a
######################################################################## 100.0%
==> Installing dependencies for wget: gettext, libunistring, libidn2 and openssl@1.1
==> Installing wget dependency: gettext
==> Pouring gettext--0.21.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/gettext/0.21: 1,953 files, 19.8MB
==> Installing wget dependency: libunistring
==> Pouring libunistring--0.9.10.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libunistring/0.9.10: 55 files, 4.5MB
==> Installing wget dependency: libidn2
==> Pouring libidn2--2.3.2.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libidn2/2.3.2: 77 files, 846.8KB
==> Installing wget dependency: openssl@1.1
==> Pouring openssl@1.1--1.1.1k.big_sur.bottle.tar.gz
==> Regenerating CA certificate bundle from keychain, this may take a while...
🍺 /usr/local/Cellar/openssl@1.1/1.1.1k: 8,071 files, 18.5MB
==> Installing wget
==> Pouring wget--1.21.1.big_sur.bottle.1.tar.gz
🍺 /usr/local/Cellar/wget/1.21.1: 88 files, 4MB
Homebrew Cask 명령을 통해 macOS 앱, 폰트, 플러그인, 오픈소스가 아닌 소프트웨어를 설치 할 수 있다.
% brew install cask
==> Downloading https://ghcr.io/v2/homebrew/core/cask/manifests/0.8.7
Already downloaded: /Users/leesj/Library/Caches/Homebrew/downloads/64d150b46bdb5610010dea1aa2c8542f313b2daa6a1bd78e34244b7d134b50f0--cask-0.8.7.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/cask/blobs/sha256:bd85befe31659e948617b988ed6
Already downloaded: /Users/leesj/Library/Caches/Homebrew/downloads/b8c046c2453e8c8d03ee289e27595d1bd3f775a8632199b7b2040486aab24ded--cask--0.8.7.all.bottle.tar.gz
==> Reinstalling cask
==> Pouring cask--0.8.7.all.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cask
==> Summary
🍺 /usr/local/Cellar/cask/0.8.7: 15 files, 150.4KB
% brew list --cask
% brew install --cask google-cloud-sdk
Performing post processing steps...
...................................................done.
Update done!
==> Source [/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc] in your profile to enable shell command completion for gcloud.
==> Source [/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc] in your profile to add the Google Cloud SDK command line tools to your $PATH.
Updating modules...
Modules updated.
Virtual env enabled.
p^_
: google-cloud-sdk was successfully installed!
vi ~/.zshrc
// path 설정 추가
export PATH="/Users/leesj/Documents/tools/google-cloud-sdk/bin:$PATH"
source ~/.zshrc
참고자료