Install software using brew on Mac
Today, when I tried to use the rz and sz commands, I found that the mac didn't come with me. So I searched for the Installation Method for the command and finally chose Brew to install it.
First, we will introduce brew. Brew is also called Homebrew. It is a software package management tool on Mac OSX. It can easily install or uninstall software on Mac. It only requires one command, which is very convenient.
Brew is similar to apt-get In ubuntu.
Install brew
Brew official site: http://brew.sh/on the official site of brew usage is described in detail
Installation Method: Open Termal on Mac: Enter the command:
Ruby-e "$ (curl-fsSL https://raw.github.com/mxcl/homebrew/go )"
Or
Curl-LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-C/usr/local -- strip 1
The first is often unsuccessful, and is often blocked in China. So I chose the second option, which is more reliable.
After brew is installed successfully, you can install the software you want, for example, wget. The command is as follows:
Sudo brew install wget
To uninstall the SDK, run the following command:
Sudo brew uninstall wget
Run the following command to view and install the software:
Sudo brew search/apache */
Note:/apache */is the regular expression used, which is separated.
Other brew commands
Brew list of installed software
Brew update updates brew
Brew home opens brew's official website in a browser
Brew info displays Software Information
Brew deps display package dependency