Mac homebrew 설치 및 개발도구 설치

leesj·2021년 8월 12일
0

개발환경/도구

목록 보기
1/3

Homebrew 설치

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew 패키지 설치

$ brew install [PACKAGE NAME]

brew 설치된 패키지 조회

% brew list
==> Formulae
gettext		libidn2		libunistring	openssl@1.1	telnet		wget

brew 설치된 패키지 삭제

$ brew uninstall [PACKAGE NAME]

Telent 설치

  • 원격에 있는 컴퓨터 등에 접속하는 것을 도와주는 서비스.
  • 보안문제로 SSH 가 주로 사용되지만 원격 port 가 Open 되어 있는지 확인하기 위해 종종 사용한다..
    *1969년에 개발된 유서깊은 프로토콜로 TCP/IP 스택을 갖춘 대부분의 네트워크 장비와 운영체제들은 원격 구성을 위해 몇 가지 종류의 텔넷 서비스 서버를 지원한다.
  • IETF STD 8 로 표준화 되었다.
% 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

wget 설치

  • GNU wget. WWW + get
  • 웹 서버로부터 콘텐츠를 가져오는 프로그램
% 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 설치

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

Homebrew cask로 어플리케이션 설치하기(gcloud)

% 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!
  • 주제를 벗어나는 내용이지만... gcloud 셋팅 후 gcloud 명령어를 찾지 못하는 경우 아래와 같이 PATH 설정 해줌
vi ~/.zshrc
// path 설정 추가
export PATH="/Users/leesj/Documents/tools/google-cloud-sdk/bin:$PATH"

source ~/.zshrc

참고자료

0개의 댓글