"Software Installation" The second way to install software on Mac (Xiaobai be careful)

Are you also lamenting why it is so troublesome to install software on Mac? Sometimes the software in the App Store is incomplete and sometimes it prompts "the software is damaged" after running for a period of time. What's more, you need to set any source, so you can try using the Homebrew command to Install and uninstall software.

Table of contents

01 Installation command

02 Error reporting failure

03 Upgrade command

04 Uninstall command

05 Zhonghui's conclusion


01 Installation command

/bin/zsh -c"$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

It is recommended that you choose the script installation source of the University of Science and Technology of China, you need to copy and paste the command twice and enter the power-on password.

02 Error reporting failure

fatal: not in a git directory

Error: Command failed with exit 128: git

Error solution Command 1:

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core

Command 2:

 

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask

After solving the error reporting problem, you can install the software through Homebrew. Generally, there are two commonly used installation commands as follows:

brew install <package>brew install --cask <package>

03 Upgrade command

Upgrade software command:

brew upgrade 

Specify to upgrade a certain software:

brew upgrade <package>

Uninstall command:

brew uninstall --force

Specify to uninstall a certain software:

brew uninstall --force <package>

04 Uninstall command

/bin/zsh -c"$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

Uninstall programs installed using Homebrew command:

brew cleanup <package>

05 Zhonghui's conclusion

Homebrew is the second "App Store" application download library, the download speed is really fast, the only certainty is that you must use commands to install/clean up and uninstall the software, the lack of a graphical interface is still not enough for Xiaobai Too friendly, I believe programmers or students who love to toss it should be very fragrant to use,

references:

01 (How to download):   https://zhuanlan.zhihu.com/p/111014448

02 (How to use): https://zhuanlan.zhihu.com/p/30704752

Guess you like

Origin blog.csdn.net/weixin_43827820/article/details/129123672