首页 > 其他分享 >Homebrew

Homebrew

时间:2024-05-10 17:34:00浏览次数:10  
标签:core git mirrors aliyun homebrew brew Homebrew

mac上的软件包管理工具

 1. 命令

本地软件库列表:brew ls

查找软件:brew search google(其中google替换为要查找的关键字)

查看brew版本:brew -v 

更新brew版本:brew update

安装软件:brew install abc

2. 更换源

# 查看 brew.git 当前源
$ cd "$(brew --repo)" && git remote -v

# 查看 homebrew-core.git 当前源
$ cd "$(brew --repo homebrew/core)" && git remote -v

# 修改 brew.git 为阿里源
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git

# 修改 homebrew-core.git 为阿里源
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git

# zsh 替换 brew bintray 镜像
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.zshrc
$ source ~/.zshrc

# bash 替换 brew bintray 镜像
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile
$ source ~/.bash_profile

# 刷新源
$ brew update

 

标签:core,git,mirrors,aliyun,homebrew,brew,Homebrew
From: https://www.cnblogs.com/zhegemaw/p/18184945

相关文章

  • 【教程】Homebrew安装MySQL 8 & 设置root密码
    ✨Homebrew安装MySQL8brewinstallmysql==>CaveatsWe'veinstalledyourMySQLdatabasewithoutarootpassword.Tosecureitrun:mysql_secure_installationMySQLisconfiguredtoonlyallowconnectionsfromlocalhostbydefaultToconnectr......
  • homebrew的安装和使用
    目录安装xcode安装homebrew有关报错解决卸载脚本安装xcode自己百度安装homebrew这可以说是网上所有brew教程中安装最快最省事的教程安装命令如下:/bin/zsh-c"$(curl-fsSLhttps://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"复制终端回车即可参考教程......
  • Homebrew
    Homebrew的概念一款MacOS平台下用Ruby脚本和GIT管理来实现的软件包管理工具,现在由GitHub上的软件工程师MikeMcQuaid维护开源代码。主要从下载的源码包解压(包含相关依存库),同时自动配置好各种环境变量,并且Homebrew会自动为你解决软件包的依赖问题。可以一条命令......
  • 常用的 Homebrew 命令
    常用的Homebrew命令Homebrew是macOS上一个流行的包管理器,用于安装和管理软件包。基础命令以下是一些常用的Homebrew命令:安装Homebrew:/bin/bash-c"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install.sh)"安装软件包:brewinst......
  • MacOs下homebrew使用brew install 下载卡住
    1解决方案在~/.bash_profile中引入国内镜像源exportHOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"exportHOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"exportHOMEBREW_BREW_GIT_REMOT......
  • MacOS安装Homebrew教程
    安装Homebrew是在MacOS上管理软件包的一种流行方法。以下是安装Homebrew的步骤:打开终端:在Spotlight搜索栏中键入“终端”,然后按下回车键打开终端应用程序。或者,你可以在“应用程序”文件夹中找到“实用工具”文件夹,并在其中找到终端。复制并粘贴以下命令到终端中,并按下回车......
  • MAC 安装 Homebrew (使用国内镜像源)
    首次安装Homebrew首先,需要确保系统中安装了bash、git和curl(对于macOS用户,系统自带bash、git和curl),对于macOS用户需额外要求安装CommandLineTools(CLT)forXcode。在命令行输入xcode-select--install安装CLTforXcode即可。接着,在终端输入以下几行命令......
  • install Homebrew and gradle
    homebrew: /bin/bash-c"$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" gradle: brewinstallgradle          配置环境:https://www.youtube.com/watch?v=hYCf8HhpaSM(startfrom2:17,这个视频记载了这个......
  • 查看 Homebrew 管理的服务的日志
    首先,使用Homebrew启动服务时你会看到一条类似如下的信息:Createdsymlink/home/ecs-user/.config/systemd/user/default.target.wants/homebrew.frps.service→/home/ecs-user/.config/systemd/user/homebrew.frps.service.==>Successfullystarted`frps`(label:homebre......
  • 解决mac下 php 提示dyld: Library not loaded: /opt/homebrew/opt/icu4c/lib/icui18n.
    产生原因是使用brewupdate后icu4c更新到了最新的版本导致php依赖的版本不一致,进入到/opt/homebrew/opt/icu4c/lib目录下查看没有icui18n.69.dylib文件 解决方法:网上下载icu4c69版本重新编译安装下载地址:https://github.com/unicode-org/icu/releases/tag/release-69-1只需......