In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains the "Homebrew package manager installation tutorials and common commands", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Homebrew package manager installation tutorials and common commands" bar!
Homebrew package Manager
[toc]
I. brief introduction
Homebrew is a package manager under Mac OS X, which is equivalent to yum and apt-get under Linux. Through Homebrew, you can easily download and install applications, no longer need to search for various installation packages.
Note: Homebrew is not compatible with the MacPorts package manager in Mac OS X. If MacPorts is already installed, uninstall it first.
Install Xcode command line tools
The Homebrew package manager relies on Xcode's command line tool, Command Line Tools (CLT) for Xcode, and can be obtained in two ways:
Install only the Xcode command line tool and execute the following command on the terminal:
Xcode-select-install
Install the entire Xcode directly in AppStore (if Xcode is used for development)
Install Homebrew
Execute the following command directly in the terminal to perform the installation.
/ usr/bin/ruby-e "$(curl-fsSL https://raw.githubusercontent.com/[Homebrew](https://brew.sh)/install/master/install)"
View Homebrew version information after installation
Brew-- version III. Replace the Homebrew installation source
Replace here with the installation source of the open source software mirror station of Tsinghua University, and execute the following command directly on the terminal:
Git-C "$(brew-repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
Git-C "$(brew-repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
Git-C "$(brew-repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
Brew update
If you need to replace the binary precompiled package source, you can execute the following command:
Echo 'export HOMEBREW_BOTTLE_DOMAIN= https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' > > ~ / .bash_profile
Source / .bash_profile
For recovery operations, please refer to https://mirrors.tuna.tsinghua.edu.cn/help/homebrew.
IV. Disable automatic updates
When Homebrew installs applications, all applications are updated automatically by default. You need to wait for a long time to update. You can choose to block automatic updates:
Echo 'export HOMEBREW_NO_AUTO_UPDATE=true' > > ~ / .bash_profilesource ~ / .bash_ profile 5. Install brew-cask
Brew-cask is a Homebrew enhancement tool for downloading binary precompiled packages (Chrome, sourcetree, etc.) for GUI applications that install Mac OS X.
The Github address is: https://github.com/xyb/homebrew-cask-completion
Brew-cask can be installed with the following command:
Brew install homebrew/completions/brew-cask-completion
Or
Brew tap homebrew/completionsbrew install brew-cask- completion VI. Common commands
Enter the brew command to see the common usage of brew, which is roughly the same as that of brew.
Example usage:brew search search package brew info view package information brew install installation package brew update update brewbrew upgrade update package brew outdated view available update brew uninstall uninstall application package brew list installed list brew config view configuration information brew doctor diagnostics brew help view help thank you for reading, these are the contents of "installation tutorials and Common commands for Homebrew package Manager" After the study of this article, I believe you have a deeper understanding of the installation tutorials and common commands of the Homebrew package manager, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.