홈브류 기초

4478 단어 brewmacoshomebrew

홈브류 용어



공식: Ruby로 작성된 패키지 정의
Keg: 공식의 설치 접두사(예:/usr/local/Cellar/pipenv)
케그 전용 종속성:/usr/local과 같은 장소에 심볼릭 링크되지 않은 종속성
Cask: MacOS 기본 앱(예: Atom 및 Google Chrome)을 설치하기 위한 Homebrew의 확장
지하실: 술통이 설치된 곳(/usr/local/Cellar)
병: 미리 만들어진 통(소스에서 만든 통이 아닌)
탭: git 저장소. 저장소를 탭하는 것은 얕은 복제본을 만드는 것입니다.
Brew 번들: 종속성을 설명하기 위한 Homebrew의 확장

필수 명령



brew install <formula name> # Installs a package

brew uninstall <formula name> # Uninstalls a package

brew list # Lists all installed packages

brew search # Lists all locally available packages

brew search <text> # Searches online in homebrew/core and
# homebrew/cask

brew search /<text>/ # Search term is interpreted as a 
# regular expression if bookended by slashes.  Searches 
# online in homebrew/core and homebrew/cask

유용한 명령



brew commands # Lists all built-in and external commands known
# to homebrew.  Returns with subheadings for:
# "Built-in commands", "Built-in developer commands",
# "External commands", "Cask commands", and
# "external cask commands".

brew cleanup # Removes old lock files and outdated downloads
# for formulae and casks, removing old versions

brew doctor # Checks system for potential problems

brew log # Shows git log for the Homebrew repository

brew log <formula name> # Shows git log for formula

brew update # Fetches newest version of Homebrew and all
# formula from Github and performs necessary migrations

brew upgrade # Upgrade outdated casks and formula using the
# same options they were installed with

brew upgrade <formula name|cask name> # Upgrade formula|cask

백그라운드 서비스 관리



Brew 서비스는 macOS launchctl 데몬 관리자를 사용하여 백그라운드 서비스를 관리합니다.

brew services run <formula name> # Run the service without
# registering to launch it at login (or boot)

brew services run --all # Run all services without registering
# to launch them at login/boot

brew services start <formula name> # Immediately start the
# service and register it to launch at login (or boot)

brew services start --all # Immediately start all services
# and register them to launch at login/boot

brew services stop <formula name> # Immediately stop the
# service and unregister it from launching at login (or boot)

brew services stop --all # Immediately stop all services
# and register unregister them from launching at login/boot

brew services restart <formula name> # Stop (if necessary) and
# start the service immediately, registering to launch at
# login (or boot)

brew services restart --all # Stop (if necessary) all services
# and start them immediately, registering to launch them at 
# login/boot

brew services cleanup # Remove all unused services

brew services # Lists all managed services and whether they 
# are stopped or started


참조:
  • Homebrew Manpage
  • Homebrew Terminology
  • 좋은 웹페이지 즐겨찾기