当前位置:网站首页>Homewbrew installation, common commands and installation path
Homewbrew installation, common commands and installation path
2022-04-23 15:58:00 【aserendipper】
One 、 install
1、homebrew What is it? ?
Homebrew Is a Mac OS Software package management tools under the platform , Own installation 、 uninstall 、 to update 、 see 、 Search and many other practical functions . A simple command , Package management can be realized , You don't have to worry about dependencies and file paths , It's very convenient .
2、 install homebrew
homebrew Installation is introduced on the official website homebrew Just one script .
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
After entering this command through the terminal , Connection rejection will occur .
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
Solution one
- modify hosts file , Add the following to hosts At the end of the middle .
sudo vi /etc/hosts
199.232.68.133 raw.githubusercontent.com
199.232.68.133 user-images.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
- Re enter the installation script , Make a cup of milk tea , Static Download ( It takes a long time ).

Solution two
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
- The above script uses the image of China University of science and technology to speed up access .
If the command execution is stuck in the following information :
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
Control + c Interrupt the script execution and run the following command :
cd "$(brew --repo)/Library/Taps/"
mkdir homebrew && cd homebrew
git clone git://mirrors.ustc.edu.cn/homebrew-core.git
After successful execution, continue to execute the installation command :
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
3、 Enter the command brew -v Verify that the installation was successful .
Two 、 Common commands
Use the following command to git Operation as an example
brew -v see homebrew Installed version
brew --help Simple command help
man brew Full command help
brew search git Search package
brew install git Install package
brew uninstall git Uninstall the installation package
brew list Displays all installed packages
brew list git Check the installation address of the installation package
brew pin git Lock packages you don't want to update
brew unpin git Unlock packages you don't want to update
brew outdated Check which installed packages need to be updated and the update status
brew update Synchronize remote updates , It has installed and updated software for this machine * mark
brew upgrade git Update individual packages
brew info git View package information
brew home git Visit the official website of the software package
brew cleanup -n Check out older packages that can be cleaned up , Do not perform actual operations
brew cleanup Clean up historical versions of all installed packages
brew cleanup git Clean up historical versions of individual installed packages
3、 ... and 、homebrew The installation path
/usr/local/Cellar all homebrew Installed programs , Are subject to [ The program name / Version number ] Stored in this directory
/usr/local/bin Launch link for storing all installation programs ( It's like a shortcut )
/usr/local/etc The default storage path of the configuration file of the installer
/usr/local/opt homebrew Download package storage path
/usr/local/Homebrew homebrew Own storage folder
版权声明
本文为[aserendipper]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231557110699.html
边栏推荐
- [AI weekly] NVIDIA designs chips with AI; The imperfect transformer needs to overcome the theoretical defect of self attention
- How do you think the fund is REITs? Is it safe to buy the fund through the bank
- [section 5 if and for]
- C语言自编字符串处理函数——字符串分割、字符串填充等
- 捡起MATLAB的第(4)天
- Import address table analysis (calculated according to the library file name: number of imported functions, function serial number and function name)
- 一文掌握vscode远程gdb调试
- js正则判断域名或者IP的端口路径是否正确
- Coalesce and repartition of spark operators
- GRBL学习(一)
猜你喜欢

How can poor areas without networks have money to build networks?

WPS brand was upgraded to focus on China. The other two domestic software were banned from going abroad with a low profile

捡起MATLAB的第(7)天

TIA博图——基本操作

Redis master-slave replication process

Codejock Suite Pro v20. three

Website pressure measurement tools Apache AB, webbench, Apache jemeter

Function summary of drawing object arrangement in R language

R语言中实现作图对象排列的函数总结
![[open source tool sharing] MCU debugging assistant (oscillograph / modification / log) - linkscope](/img/39/4d37c381f16dbe11acc64c92d0a1e5.png)
[open source tool sharing] MCU debugging assistant (oscillograph / modification / log) - linkscope
随机推荐
实现缺省页面
Simple usage of dlopen / dlsym / dlclose
Upgrade MySQL 5.1 to 5.66
Distinct use of spark operator
单体架构系统重新架构
Compile, connect -- Notes
MySQL Cluster Mode and application scenario
Codejock Suite Pro v20. three
Groupby use of spark operator
Extract non duplicate integers
Configuration of multi spanning tree MSTP
Upgrade MySQL 5.1 to 5.610
Go language, array, pointer, structure
Sortby use of spark operator
捡起MATLAB的第(4)天
Why is IP direct connection prohibited in large-scale Internet
ES常用查询、排序、聚合语句
MySQL集群模式与应用场景
撿起MATLAB的第(9)天
捡起MATLAB的第(7)天