Homebrew官方网站:https://brew.sh/
1,安装brew,Mac中打开Termal输入命令:
" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "
If you are prompted that/usr/bin/ruby cannot find it, use which Ruby to see where Ruby is installed.
2. Use Brew to install the software
Brew Install Tree
3. View installed software
Brew List
4. Uninstalling the Software
Brew Uninstall Tree
5, other common brew commands
Brew Search /tree*/ needs to be searched for content contained within/ within brew update update brewbrew home Browser Open Brew's official website brew Info Show software information Brew Deps Show package dependencies
The tree command is a useful tool for displaying the directory structure of the current folder:
__init__ . py│├──settings.py│├──settings.py.bak│├──urls.py│├──urls.py.bak│├──views.py│├──views.py.bak│ └──wsgi.py└──west __init__. py ├──admin.py ├──apps.py ├──migrations __init__ . py ├──models.py ├──tests.py ├──urls.py ├──urls.py.bak ├──views.py └── Views.py.bak3 directories, files
Mac installs software using the Brew command line