Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is Homebrew and how to use it on Mac?

Shulou Source: shulou.com Published: 2022-06-02 07:03:12 10月04日 Update

Homebrew is a software installation management tool on Mac's OS X, similar to apt-get or yum. What is Homebrew

Homebrew is a software installation management tool on Mac's OS X, similar to apt-get or yum. It has many practical functions such as installing, uninstalling, updating, viewing, searching and so on. A simple instruction, you can achieve package management, without you to care about various dependencies and file paths, very convenient and fast. Homebrew Cask is an extension of Homebrew and can be used to install some applications.

Second, Homebrew installation 1. Request

Intel CPU

OS X 10.9 or higher

Xcode command line tool

$xcode-select-install1

Support for shell (sh or bash) 4

two。 Install and uninstall

Install homebrew

Ruby-e "$(curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"1

When finished, run the brew doctor command to verify that the installation was successful.

Use homebrew to install things

Brew install caskroom/cask/brew-cask

Uninstall homebrew

$cd `brew-- prefix` $rm-rf Cellar$ brew prune$ rm `git ls- files` $rm-r Library/Homebrew Library/Aliases Library/Formula Library/Contributions$ rm-rf .git $rm-rf ~ / Library/Caches/Homebrew1234567

Basic use of Homebrew

Install any package

$brew install

Example: install wget

$brew install wget

Uninstall any package

$brew uninstall

Example: uninstall git

$brew uninstall git

Query available packages

$brew search

View a list of installed packages

$brew list

View any package information

$brew info

Update Homebrew

$brew update

View Homebrew version

$brew-v

Homebrew help Information

$brew-h

Basic use of Homebrew cask

Using Homebrew Cask is also very simple, and the command format is very similar to Homebrew.

Brew cask search name brew cask install name brew cask uninstall name

The original text is from: https://www.linuxprobe.com/homebrew-mac-usage.html

Tags: Commands tools management information examples management tools software updates utility success convenience no use things functions original text situation instructions files formats versions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information MySQL macOS Microsoft