Introduction
Brew is also called homebrew, is the software package management tool on Mac OSX, can install the software conveniently in Mac or uninstall the software, only need a simple command, very convenient
"Problems encountered"
Before really understanding the package management tools, has been out of chaos, what to download, the source is not the same, there are from Git, from the installation package download, but also from Baidu, and so on, I remember the most memorable is about MySQL database learning, I downloaded a lot of different paths different sources of database, and later led to Terminal software management confusion, configuration files are a mess;
This time it is for the small program Trace export tool to install ADB, the best way is to install brew, but the installation process of various errors, the best way is to re-do the system and then the package management
And that's what caused this deep study.
Website
https://brew.sh/
Here's a detailed information about brew
"Install homebrew"
" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "
"Introduction to installation directory"
$ cd/usr/local$ find cellarcellar/wget/1.16.1Cellar/wget/1.16.1/bin/wgetcellar/wget/ 1.16.1/share/man/man1/wget.1-l binbin/wget. /cellar/wget/1.16.1/bin/wget
Homebrew will install the package into a standalone directory and soft-link its files to the/usr/local
Homebrew does not install files outside of its own directory, so you can install homebrew in any location
"Basic Command"
- View Brew Version
Brew-v
- Installation formula
Brew Install Formula Example: Brew Install wget
- Unload formula
Brew Uninstall Formula example: Brew Uninstall wget
- Search for formulas
Brew search/formula//wge*/
* Indicates fuzzy search
- View installed software
Brew List
- Update Brew
Brew Update
- Open the Brew official website with your browser
Brew Home
- displaying software information
Brew Info
- Show Package dependencies
Brew Deps
- Additional Help information
Example Usage: brew search [TEXT|/regex/] Brew (info|home| Options) [FORMULA ...] Brew Install FORMULA ... Brew Update Brew upgrade [FORMULA ...] Brew Uninstall FORMULA ... Brew list [FORMULA ...] Troubleshooting: Brew config brew Doctor -VD formuladevelopers: brew Create [URL [ --no-Fetch]] brew edit [FORMULA ...] https://docs.brew.sh/formula-cookbook.htmlfurther help: Mans brew Brew help [COMMAND] Brew Home
"Package Manager"
A Package Manager or package management system is a collection of software tools that automate the process of installing, upgrading, configuring, and removing software packages in a manner consistent with the computer's operating system, which typically maintains a database software dependency and version information, preventing software mismatches and inability to track.
Homebrew-macos Missing Package Manager (BREW)