macOS를 사용하는 개발자에게 Homebrew는 선택이 아닌 필수 도구입니다. Apple에서 기본적으로 제공하지 않는 다양한 명령줄 도구와 GUI 애플리케이션을 터미널에서 간단하게 설치하고 관리할 수 있게 해줍니다.

For macOS developers, Homebrew is an essential tool rather than an option. It allows you to easily install and manage various command-line tools and GUI applications that Apple doesn’t provide by default, all through the terminal.


1. Homebrew 설치하기 (Installation)

Homebrew는 공식 홈페이지에서 제공하는 스크립트를 터미널에 붙여넣는 것만으로 간단히 설치할 수 있습니다.

You can install Homebrew simply by pasting the script provided on the official website into your terminal.

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

2. Brew 명령어 소개 (Introduction to Brew Commands)

설치가 완료되었다면 brew 명령어를 통해 패키지 관리 시스템을 제어할 수 있습니다. 모든 작업은 터미널 환경에서 이루어집니다.

Once the installation is complete, you can control the package management system using the brew command. All operations are performed within the terminal environment.


3. 프로그램 찾기: brew search (Finding Programs)

설치하고 싶은 프로그램이 있는지 확인하려면 search 명령어를 사용합니다. 예를 들어, Google Chrome을 찾고 싶다면 다음과 같이 입력합니다.

To check if a program you want to install is available, use the search command. For example, if you want to find Google Chrome, enter the following:

brew search google-chrome

3-1. Formula(Binary)와 Cask의 차이점 (Differences between Formula and Cask)

Homebrew에서 검색 결과는 크게 두 가지로 나뉩니다.

In Homebrew, search results are largely divided into two categories.

  • Formula (Binary): 터미널에서 사용하는 CLI 도구, 라이브러리 등 (e.g., git, wget, python).

    Formula (Binary): CLI tools, libraries, etc., used in the terminal.

  • Cask: Google Chrome, Slack, VS Code와 같이 설치 아이콘이 생기는 GUI 애플리케이션.

    Cask: GUI applications with installation icons, such as Google Chrome, Slack, and VS Code.


4. 패키지 설치하기: brew install (Installing Packages)

원하는 패키지를 찾았다면 install 명령어로 설치합니다.

Once you’ve found the package you want, install it using the install command.

# 일반 바이너리 설치 (Formula)
brew install wget

# GUI 애플리케이션 설치 (Cask)
brew install --cask google-chrome

5. 설치된 패키지 확인: brew list (Listing Installed Packages)

내 시스템에 어떤 패키지들이 설치되어 있는지 확인하려면 list 명령어를 사용합니다.

To see which packages are installed on your system, use the list command.

brew list

6. 패키지 삭제하기: brew uninstall (Uninstalling Packages)

더 이상 필요 없는 패키지는 uninstall 명령어로 제거합니다.

Remove packages you no longer need with the uninstall command.

brew uninstall wget

6-1. 완전 삭제를 위한 –zap 옵션 (The –zap Option for Complete Removal)

Cask로 설치한 GUI 앱의 경우, 연관된 설정 파일이나 잔여 데이터를 함께 삭제하려면 --zap 옵션을 사용하면 편리합니다.

For GUI apps installed via Cask, it is convenient to use the --zap option to delete associated configuration files or residual data.

brew uninstall --cask --zap google-chrome

7. 업데이트 방법: brew update (Updating)

Homebrew 자체와 설치된 패키지 리스트를 최신 상태로 유지하려면 아래 명령어를 사용합니다.

To keep Homebrew itself and the list of installed packages up to date, use the command below.

brew update
brew upgrade

7-1. 전체 업데이트: –greedy 옵션 (Full Update with –greedy)

일부 Cask 패키지들은 자동으로 업데이트되지 않는 경우가 있습니다. --greedy 옵션을 사용하면 버전 확인이 모호한 앱들까지 모두 강제로 업데이트합니다.

Some Cask packages may not update automatically. Using the --greedy option forces an update even for apps with ambiguous version tracking.

brew upgrade --cask --greedy

결론 (Conclusion)

Homebrew를 사용하면 복잡한 설치 과정 없이 터미널 명령어 한 줄로 맥의 소프트웨어 환경을 완벽하게 제어할 수 있어 매우 편리합니다.

Using Homebrew is incredibly convenient as it allows you to completely control your Mac’s software environment with a single terminal command, without any complex installation processes.

⚠️경고: 패키지를 설치할 때는 반드시 해당 프로그램이 인증받은 공식 배포본인지, 믿을만한 제작자의 것인지 확인하시기 바랍니다. 보안을 위해 검증되지 않은 패키지 설치는 지양해야 합니다.

⚠️Warning: When installing packages, always ensure that the program is an officially certified distribution or from a reliable developer. For security reasons, avoid installing unverified packages.

Enjoy!