homebrew는 Mac운영체제에서 각종 유틸들을 손쉽게 설치하고 사용할수 있게 도와주는 Package manager입니다. homebrew를 한번도 설치하지 않은 분들은 아래 명령어를 입력하여 설치해주세요.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
기존에 설치를 하신분들은 brew -v
명령어를 이용해서 현재 버젼을 알아낼수 있습니다.
$ brew -v
Homebrew 3.3.9
Homebrew/homebrew-core (git revision 8eab795ad1d; last commit 2022-01-06)
Homebrew/homebrew-cask (git revision 1a7ec319ea; last commit 2022-01-06)
최신버젼이 아닌경우에는 brew update
명령어를 이용하여 최신버젼으로 업데이트를 해주세요.
$ brew update
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
...
You have 5 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
특정 툴을 설치하시고 싶을 때는 brew install
명령어를 이용하시면 됩니다. 예를 들어 wget를 설치하시고 싶을때는 아래와 같이 brew install wget
이라고 치시면 설치가 됩니다.
$ 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:0e93b5264879cd5ece6efb644fd6320b0b96cce36de3901c1926e5
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:0e93b5264879cd5ece6efb644fd6320b0b96cce
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/manifests/1.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libunistring/blobs/sha256:18a1691229db1dbc9c716236df52f447aa9949121c36ae65b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:18a1691229db1dbc9c716236df52f447aa99491
######################################################################## 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:29b1ea810ddad662b0c766429c2384495d643baa253dc31eed0300
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:29b1ea810ddad662b0c766429c2384495d643ba
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/wget/manifests/1.21.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:b6d6f422e3c4db0607caf5fc91dba4fb19b3c52883d7a012c9fc11b87
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:b6d6f422e3c4db0607caf5fc91dba4fb19b3c52
######################################################################## 100.0%
==> Installing dependencies for wget: gettext, libunistring and libidn2
==> Installing wget dependency: gettext
==> Pouring gettext--0.21.monterey.bottle.tar.gz
🍺 /usr/local/Cellar/gettext/0.21: 1,953 files, 20.2MB
==> Installing wget dependency: libunistring
==> Pouring libunistring--1.0.monterey.bottle.tar.gz
🍺 /usr/local/Cellar/libunistring/1.0: 56 files, 5MB
==> Installing wget dependency: libidn2
==> Pouring libidn2--2.3.2.monterey.bottle.tar.gz
🍺 /usr/local/Cellar/libidn2/2.3.2: 77 files, 846.7KB
==> Installing wget
==> Pouring wget--1.21.2.monterey.bottle.tar.gz
🍺 /usr/local/Cellar/wget/1.21.2: 89 files, 4.2MB
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /usr/local/Cellar/gettext/0.20.1... (1,899 files, 18.5MB)
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
설치된 툴들을 보고 싶을때는 brew list
를 이용합니다.
$ brew list
==> Formulae
ca-certificates inetutils libunistring openssl@1.1 wget
gettext libevent lz4 pcre2 zstd
git libidn mysql protobuf
icu4c libidn2 mysql-search-replace six
설치한 툴을 삭제하고 싶으면 brew uninstall
을 이용합니다.
$ brew uninstall wget
Uninstalling /usr/local/Cellar/wget/1.21.2... (89 files, 4.2MB)
Warning: The following may be wget configuration files and have not been removed!
If desired, remove them manually with `rm -rf`:
/usr/local/etc/wgetrc
homebrew에 대해 더 자세한 사항은 여기를 클릭해주세요.