본문 바로가기
Developer/OSX

[macOS] Homebrew 설치

by ParkjuGod 2021. 12. 22.

Homebrew 는 Mac 용 패키지 관리자라고 보면 된다. 

centos 의 yum 이나 ubuntu 의 apt-get 과 같은 역할을 한다고 보면 된다. 

 

Homebrew 는 기본적으로 macOS 의 terminal 에서 사용한다.

 

Spotlight 검색 (command + space) 에서 terminal.app 을 실행 하자.

# Homebrew 설치

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

 

# 사용 예 ( git 설치 )

brew install git

 

# zsh: command not found: brew 

terminal 의 zsh 에서 homebrew 의 path 가 연결(?) 되지 않아 실행 할 수 없는 것이다. 아래와 같이 해결 하자.

~/.zshrc 내용에 아래 내용을 입력 하고 저장

export PATH=/opt/homebrew/bin:$PATH

 

% source ~/.zshrc

 

 

참고사이트: https://brew.sh/

반응형

'Developer > OSX' 카테고리의 다른 글

[OSX] 맥북에서 현재 사용중인 포트 확인하기  (0) 2025.04.22