C.W.K.
Stream
Lesson 03 of 05 · published

매일 칠 명령어들

~14 min · homebrew, commands, workflow, muscle-memory

Level 0초심자
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

Homebrew 명령은 수십 개지만 8개가 매일 작업의 95% 를 차지해. 이거 내재화하면 유창해.

brew install 은 formula 또는 --cask 와 함께 GUI 앱 설치. brew uninstall 은 제거 — brew autoremove 는 더 이상 아무도 안 쓰는 의존성 정리. brew search 는 이름 / 정규식으로 패키지 찾기. brew info 는 패키지의 홈페이지, 버전, 의존성, install 경로 표시.

brew update 는 GitHub 에서 새 formula 정의를 가져와. brew upgrade 는 깔린 패키지의 새 버전 설치. 두 개를 보통 brew cleanup (오래된 다운로드 archive 삭제) 과 묶어서 — 이 세 명령 춤이 표준 주간 정비 루틴.

brew doctor 는 뭔가 깨졌을 때 가장 먼저 칠 명령. 추측 시작 전에 흔한 문제 80% 를 진단해. brew services 는 백그라운드 프로세스 관리 — Homebrew 로 깐 PostgreSQL, Redis 같은 daemon 시작 방법. brew bundle 은 install 한 패키지를 Brewfile (텍스트 manifest) 로 만들고, 다른 Mac 에서 한 명령으로 전체 set 재설치.

Code

매일 치는 8개 명령·bash
# Install (formula 또는 cask)
brew install git
brew install --cask firefox

# 검색 + 조사
brew search ^python      # 정규식 검색
brew info postgresql@16  # 홈페이지, deps, install 경로, caveats

# 정비
brew update              # formula 정의 새로고침
brew upgrade             # 깔린 패키지 다 업그레이드
brew cleanup             # 오래된 다운로드 삭제

# 제거 + orphan 정리
brew uninstall some-tool
brew autoremove          # 아무도 안 쓰는 deps 제거

# 진단
brew doctor              # 뭐가 깨지면 이걸 먼저
백그라운드 서비스 — 시작, 목록, 정지·bash
# DB install
brew install postgresql@16

# 백그라운드 서비스로 시작 (로그인 시 자동 재시작)
brew services start postgresql@16

# 뭐가 돌고 있나
brew services list

# Homebrew 가 돌리는 거 다 정지
brew services stop --all
Brewfile — Mac 을 한 텍스트 파일로·bash
# 현재 install 상태에서 Brewfile 생성
brew bundle dump --describe --file=~/Brewfile

# 새 Mac 에서 한 명령으로 모든 거 복원
brew bundle install --file=~/Brewfile

# Brewfile vs 현재 상태 비교 (뭐가 빠졌나, 뭐가 더 깔렸나)
brew bundle check --file=~/Brewfile

External links

Exercise

'brew bundle dump --describe --file=~/Brewfile' 돌리고 결과 파일 에디터로 열어. 한 줄 한 줄 다 읽어 — 각 줄이 모든 Mac 에 깔 가치 있다고 결정한 도구야. 놀라운 게 있으면 ('이거 안 쓰는데?') 제거하고 다시 dump. dotfiles repo 가 있으면 ~/Brewfile 도 git 에 commit.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.