diff --git a/_data/options.yml b/_data/options.yml index b33bdc7..89a2ee4 100644 --- a/_data/options.yml +++ b/_data/options.yml @@ -151,7 +151,7 @@ mirror_desc: - name: hackage desc: Haskell 社区的中心软件包仓库 - name: homebrew - desc: Homebrew 的软件包描述文件(Git 仓库) + desc: Homebrew/Linuxbrew 的 taps(软件包描述文件 Git 仓库) - name: homebrew-bottles desc: 预编译的 Homebrew 软件包 - name: iina @@ -190,6 +190,8 @@ mirror_desc: desc: Linux 内核源代码的 Git 仓库, 稳定版分支 - name: linux.git desc: Linux 内核源代码的 Git 仓库 + - name: linuxbrew-bottles + desc: 预编译的 Linuxbrew 软件包 - name: linuxmint desc: Linux Mint 的官方软件源 - name: linuxmint-cd @@ -330,14 +332,12 @@ mirror_desc: desc: 著名的网络监视、管理系统 new_mirrors: - - rustup - - nix - - dart-pub - - flutter - raspbian-images - linux-firmware.git - gcc.git - qemu.git + - homebrew + - linuxbrew-bottles unlisted_mirrors: - status: 'success' diff --git a/_posts/help/1970-01-01-homebrew.md b/_posts/help/1970-01-01-homebrew.md index 98e36ff..1251c01 100644 --- a/_posts/help/1970-01-01-homebrew.md +++ b/_posts/help/1970-01-01-homebrew.md @@ -4,18 +4,24 @@ layout: help mirrorid: homebrew --- -## Homebrew 镜像使用帮助 +## Homebrew/Linuxbrew 镜像使用帮助 -**注:该镜像是 Homebrew 的 formula 索引的镜像(即 `brew update` 时所更新内容)。本镜像站同时提供 Homebrew 二进制预编译包的镜像,请参考 [Homebrew bottles 镜像使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/homebrew-bottles/)。** +**注:该镜像是 Homebrew/Linuxbrew 的 formula 索引的镜像(即 `brew update` 时所更新内容)。本镜像站同时提供相应的二进制预编译包的镜像,请参考 [Homebrew bottles 镜像使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/homebrew-bottles/) 和 [Linuxbrew bottles 镜像使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/linux-bottles/)。** ### 替换现有上游 ``` +# brew 程序本身,Homebrew/Linuxbrew 相同 git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git +# 以下针对 mac OS 系统上的 Homebrew 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 +git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git +git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-drivers.git + +# 以下针对 Linux 系统上的 Linuxbrew +git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/linuxbrew-core.git brew update ``` @@ -25,11 +31,17 @@ brew update _(感谢Snowonion Lee提供说明)_ ``` +# brew 程序本身,Homebrew/Linuxbrew 相同 git -C "$(brew --repo)" remote set-url origin https://github.com/Homebrew/brew.git +# 以下针对 mac OS 系统上的 Homebrew git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git - git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git +git -C "$(brew --repo homebrew/cask-fonts)" remote set-url origin https://github.com/Homebrew/homebrew-cask-fonts.git +git -C "$(brew --repo homebrew/cask-drivers)" remote set-url origin https://github.com/Homebrew/homebrew-cask-drivers.git + +# 以下针对 Linux 系统上的 Linuxbrew +git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/linuxbrew-core.git brew update ``` diff --git a/_posts/help/1970-01-01-linuxbrew-bottles.md b/_posts/help/1970-01-01-linuxbrew-bottles.md new file mode 100644 index 0000000..6c6313c --- /dev/null +++ b/_posts/help/1970-01-01-linuxbrew-bottles.md @@ -0,0 +1,20 @@ +--- +category: help +layout: help +mirrorid: linuxbrew-bottles +--- + +## Linuxbrew-bottles 镜像使用帮助 + +**注:该镜像是 Linuxbrew 二进制预编译包的镜像。本镜像站同时提供 Linuxbrew 的 formula 索引的镜像(即 `brew update` 时所更新内容),请参考 [Linuxbrew 镜像使用帮助](https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/)。** + +### 临时替换 +```bash +export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/linuxbrew-bottles +``` + +### 长期替换 +```bash +echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/linuxbrew-bottles' >> ~/.bash_profile +source ~/.bash_profile +```