brew install
패키지·런타임
쓰는 꼴
brew install [--cask] <formula>macOS와 Linux에서 미리 빌드된 bottle을 받아 설치합니다 — 화면이 있는 앱은 --cask로 넣고, 새 버전으로 올리는 일은 install이 아니라 brew update와 brew upgrade가 맡습니다.
자주 쓰는 옵션
| 옵션 | 뜻 |
|---|---|
| --cask | install a GUI application instead of a formula |
| --formula | force the formula when a cask has the same name |
| --HEAD | build from the latest source instead of a release |
| --build-from-source | compile locally instead of using the bottle |
예시
brew install ripgrepinstalls a prebuilt bottle in seconds
brew install --cask visual-studio-codeinstalls an app into /Applications
brew install node@22a versioned formula, keg-only until you brew link it
무엇을 어디에 넣는지가 문제입니다. 프로젝트 안인지 시스템 전체인지 먼저 정하세요.
읽는 방법
- 대괄호 [ ]는 넣어도 되고 안 넣어도 되는 자리입니다.
- 점 셋 …은 여러 개를 이어 쓸 수 있다는 뜻입니다.
- 옵션은 대소문자를 가립니다 — -r과 -R이 다른 명령도 있습니다.
자주 묻는 것
Q. brew install은 무엇을 하나요?
macOS와 Linux에서 미리 빌드된 bottle을 받아 설치합니다 — 화면이 있는 앱은 --cask로 넣고, 새 버전으로 올리는 일은 install이 아니라 brew update와 brew upgrade가 맡습니다.
Q. 어떻게 치나요?
brew install [--cask] <formula> — 대괄호는 생략할 수 있는 자리입니다.
Q. 옵션은 몇 개나 자주 쓰나요?
여기 정리한 것은 4개입니다. 전체 목록은 man brew에 있습니다. 이 명령은 패키지·런타임 갈래입니다.
같이 보는 명령
man 페이지: man brew-install