当前位置: 首页> 财经> 访谈 > 武汉软件100强企业名单_南京中企动力有限公司_传播易广告投放平台_百度统计平台

武汉软件100强企业名单_南京中企动力有限公司_传播易广告投放平台_百度统计平台

时间:2025/7/10 7:50:23来源:https://blog.csdn.net/z_johnny/article/details/146490262 浏览次数:1次
武汉软件100强企业名单_南京中企动力有限公司_传播易广告投放平台_百度统计平台

Homebrew:macOS(或 Linux)缺失的软件包的管理器

官网:https://brew.sh/

安装homebrew方式区别

官方命令行官方pkg安装国内安装
镜像容易下载推荐页面化安装下载快,中文

命令行

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

安装过程

johnny@MacBook-Pro homebrew % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
==> The following new directories will be created:
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functionsPress RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chmod ug=rwx /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chmod go-w /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown hongwei /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /usr/bin/chgrp admin /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown -R hongwei:admin /opt/homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 87, done.
remote: Counting objects: 100% (87/87), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 87 (delta 67), reused 87 (delta 67), pack-reused 0 (from 0)
==> Updating Homebrew...
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:d9faa506c014dedc0b034a68103ba75c9a58242f4d6c67b6ca0f649c39602bcf
######################################################################### 100.0%
==> Pouring portable-ruby-3.3.7.arm64_big_sur.bottle.tar.gz
Updated 1 tap (homebrew/core).
Warning: /opt/homebrew/bin is not in your PATH.Instructions on how to configure your shell for Homebrewcan be found in the 'Next steps' section below.
==> Installation successful!==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).==> Homebrew is run entirely by unpaid volunteers. Please consider donating:https://github.com/Homebrew/brew#donations==> Next steps:
- Run these commands in your terminal to add Homebrew to your PATH:echo >> /Users/johnny/.zprofileecho 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/johnny/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:https://docs.brew.sh

根据提示配置环境变量

johnny@MacBook-Pro homebrew % brew
zsh: command not found: brew
johnny@MacBook-Pro homebrew % echo >> /Users/johnny/.zprofile
johnny@MacBook-Pro homebrew % echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/johnny/.zprofile
johnny@MacBook-Pro homebrew % eval "$(/opt/homebrew/bin/brew shellenv)"
johnny@MacBook-Pro homebrew % 
johnny@MacBook-Pro homebrew % brew
Example usage:brew search TEXT|/REGEX/brew info [FORMULA|CASK...]brew install FORMULA|CASK...brew updatebrew upgrade [FORMULA|CASK...]brew uninstall FORMULA|CASK...brew list [FORMULA|CASK...]Troubleshooting:brew configbrew doctorbrew install --verbose --debug FORMULA|CASKContributing:brew create URL [--no-fetch]brew edit [FORMULA|CASK...]Further help:brew commandsbrew help [COMMAND]man brewhttps://docs.brew.sh

pkg安装

在这里插入图片描述
根据提示一直安装即可

配置环境变量

echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.bash_profile source ~/.bash_profileecho 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc   source ~/.zshrc

国内地址

安装脚本:

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

卸载脚本:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"
关键字:武汉软件100强企业名单_南京中企动力有限公司_传播易广告投放平台_百度统计平台

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: