macOS 패키지 매니저
설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
사용
명령어 | 설명 | 예제 |
---|---|---|
brew install | 패키지 설치 | brew install python |
brew uninstall | 패키지 삭제 | brew uninstall git |
brew update | Homebrew 자체 업데이트 | brew update |
brew upgrade | 설치된 패키지 전체 업그레이드 | brew upgrade |
brew list | 설치된 일반 패키지 목록 | brew list |
brew list --cask | 설치된 GUI 앱 목록 | brew list --cask |
brew search | 패키지 검색 | brew search chrome |
brew info | 패키지 상세 정보 | brew info python |
brew cleanup | 오래된 패키지 정리 | brew cleanup |
brew doctor | Homebrew 문제 진단 | brew doctor |
백업 및 복원
새 컴퓨터에 똑같은 앱을 설치하고 싶을 때
백업
brew 로 설치 안하고 앱스토어로 설치한 앱도 백업됨
brew bundle dump --describe --file=Brewfile_20250211
복원
위에서 생성된 Brewfile_20250211 파일을 새 컴퓨터에 복사하고 실행
brew bundle install --file Brewfile_20250211