콘텐츠로 이동

Homebrew 패키지 관리자

macOS 및 Linux 패키지 관리를위한 포괄적 인 Homebrew 명령 및 워크플로우.

설치 및 설치

Homebrew 설치

카지노사이트

기본 패키지 작업

Command Description
brew install package_name Install package
brew uninstall package_name Uninstall package
brew upgrade Upgrade all packages
brew upgrade package_name Upgrade specific package
brew list List installed packages
brew outdated List outdated packages

패키지 정보

검색 및 정보

Command Description
brew search keyword Search for packages
brew info package_name Show package information
brew list --versions List installed packages with versions
brew deps package_name Show package dependencies
brew uses package_name Show packages that depend on this
brew home package_name Open package homepage

포장 세부 사항

Command Description
brew desc package_name Show package description
brew cat package_name Show package formula
brew edit package_name Edit package formula
brew log package_name Show package commit history

Cask 관리 (GUI 응용 프로그램)

Cask 가동

Command Description
brew install --cask app_name Install GUI application
brew uninstall --cask app_name Uninstall GUI application
brew list --cask List installed casks
brew search --cask keyword Search for casks
brew info --cask app_name Show cask information
brew upgrade --cask Upgrade all casks

인기있는 Casks

Cask Description
visual-studio-code VS Code editor
google-chrome Chrome browser
docker Docker Desktop
slack Slack messaging
zoom Zoom video conferencing
spotify Spotify music

서비스 관리

서비스 운영

Command Description
brew services list List all services
brew services start service_name Start service
brew services stop service_name Stop service
brew services restart service_name Restart service
brew services run service_name Run service once

일반 서비스

Service Description
postgresql PostgreSQL database
mysql MySQL database
redis Redis cache
nginx Nginx web server
mongodb-community MongoDB database

탭 관리 (Third-party 저장소)

탭 작업

Command Description
brew tap List tapped repositories
brew tap user/repo Add tap
brew untap user/repo Remove tap
brew tap-info user/repo Show tap information

인기 탭

Tap Description
homebrew/cask-fonts Fonts collection
homebrew/cask-versions Alternative app versions
homebrew/services Service management
mongodb/brew MongoDB packages

시스템 정비

Cleanup 운영

Command Description
brew cleanup Remove old versions
brew cleanup package_name Clean specific package
brew cleanup --prune=all Remove all old downloads
brew autoremove Remove unused dependencies

건강과 진단

Command Description
brew doctor Check system for issues
brew missing Check for missing dependencies
brew config Show Homebrew configuration
brew --version Show Homebrew version

고급 사용

공식 개발

Command Description
brew create URL Create new formula
brew edit package_name Edit formula
brew install --build-from-source package Build from source
brew test package_name Test formula

버전 관리

Command Description
brew pin package_name Pin package version
brew unpin package_name Unpin package version
brew switch package_name version Switch to specific version
brew list --versions package_name Show available versions

번들 관리

카지노사이트

Command Description
brew bundle Install from Brewfile
brew bundle dump Create Brewfile
brew bundle cleanup Uninstall unlisted packages
brew bundle check Check Brewfile status

제품 설명

환경 변수

Variable Description
HOMEBREW_PREFIX Installation prefix
HOMEBREW_CELLAR Package installation directory
HOMEBREW_REPOSITORY Homebrew repository location
HOMEBREW_CACHE Download cache directory

구성 파일

File Description
~/.homebrew/ User configuration
/opt/homebrew/ Installation directory (Apple Silicon)
/usr/local/ Installation directory (Intel)
Brewfile Package bundle file

문제 해결

일반적인 문제

Problem Solution
Permission errors sudo chown -R $(whoami) /opt/homebrew
Outdated Xcode tools xcode-select --install
Broken symlinks brew doctor && brew cleanup
Formula conflicts brew unlink package && brew link package

재설정 및 재설치

Command Description
brew uninstall --force package_name Force uninstall
brew reinstall package_name Reinstall package
brew link --overwrite package_name Force link
brew prune Remove dead symlinks

관련 링크

Command Description
brew --debug install package Debug installation
brew --verbose install package Verbose installation
brew gist-logs package_name Create gist of logs

성능 최적화

병렬 작업

카지노사이트

Cache 관리

Command Description
brew cleanup --prune=7 Keep 7 days of downloads
du -sh $(brew --cache) Check cache size
rm -rf $(brew --cache) Clear all cache

계정 관리

패키지 검증

Command Description
brew audit package_name Audit package formula
brew style package_name Check formula style
brew install --verbose package Show detailed install process

안전 연습

  1. Regular Update: 홈brew 및 패키지 업데이트 유지
  2. ** 고정 탭 **: 신뢰할 수있는 타사 탭 만 추가
  3. Review Formulas: 설치 전에 공식 확인
  4. 명세 ** 백업 **: 쉽게 복원을위한 Brewfile 유지
  5. 명세 ** 권한**: sudo로 실행하지 마십시오

통합

Shell 통합

카지노사이트

개발 Workflow

카지노사이트

최고의 연습

패키지 관리

  1. Regular Maintenance: 매주 brew update && brew upgrade 실행
  2. Cleanup: 오래된 버전과 캐시의 정기적인 정리
  3. Bundle Files: 팀 일관성을 위한 Brewfile 사용
  4. 명세 Pin Critical: 특정 버전이 필요한 핀 패키지
  5. 명세 Documentation: 문서 사용자 정의 탭 및 구성

개발 환경

  1. 버전 관리자: 언어의 버전 관리자 사용 (nvm, pyenv, rbenv)
  2. Virtual Environments: 고립된 프로젝트 의존성
  3. ** 서비스 관리**: 개발 데이터베이스에 대한 brew 서비스 사용
  4. 명세 ** 서류 관리 **: PATH 깨끗하고 조직 유지
  5. 명세 **백업 전략 **: 정규 Brewfile 덤프 및 dotfile 백업

- 연혁

  1. **Parallel 다운로드 **: 병렬 작업
  2. ** 캐시 관리 **: 일반 캐시 정리
  3. Analytics: 빠른 가동을 위한 쉬운 분석
  4. 명세 GitHub Token: API 속도 제한을 위한 GitHub 토큰 사용
  5. 명세 SSD 최적화: 빠른 저장에 캐시