homebrewloongarch64.site
面向 LoongArch(loongarch64)的软件源:Homebrew 兼容源 + AOSC OS 第三方 DEB 仓库
Homebrew tap预编译 bottlehomebrew-core 镜像🔍 浏览 / 搜索全部软件包 →
🍺 在龙芯上安装 Homebrew(brew 本体可用)
官方 Homebrew 不支持 loongarch64。本项目提供移植补丁与安装脚本,brew 本体可以在龙芯上运行。
curl -fsSL https://homebrewloongarch64.site/install-brew.sh | bash
# 按提示加入 PATH
eval "$($HOME/.linuxbrew/bin/brew shellenv)"
# 从源码安装软件(龙芯无官方 bottle)
brew install --build-from-source tree
# 装好 brew 后,用预编译 bottle 秒装
brew tap loongarch64/loong64 https://homebrewloongarch64.site/git/brew-tap.git
brew install loongarch64/loong64/tree
适配内容:固定 brew 5.0.0(最后支持 Ruby 3.4 的版本)+ 放开架构检查 + 补充龙芯动态链接器路径。
补丁可单独下载:brew-loongarch64.patch
1. 使用 Homebrew 源
上游 Homebrew 尚不支持 loongarch64。本源提供 tap、预编译 bottle
和 homebrew-core 镜像,用法与 Homebrew 一致。
① 直接安装单个软件(不需要 Homebrew)
# 安装到 /usr/local/bin
curl -fsSL https://homebrewloongarch64.site/get.sh | sudo sh -s tree
# 安装到自定义前缀
curl -fsSL https://homebrewloongarch64.site/get.sh | sh -s tree --prefix ~/.local
# 查看版本
tree --version
② 用 Homebrew 安装(已有 loongarch64 版 brew)
brew tap HougeLangley/loong64
brew install tree
brew info tree
③ 校验下载
# 索引里每个 bottle 都带 sha256
curl -fsSL https://homebrewloongarch64.site/brew/index.json \
| jq -r '.formulae[] | select(.name=="tree") | .bottles[0] | "\(.file) \(.sha256)"'
# 手动下载并校验
curl -LO https://homebrewloongarch64.site/brew/bottles/tree--2.3.2.loongarch64.bottle.tar.gz
sha256sum tree--2.3.2.loongarch64.bottle.tar.gz
④ 镜像(中国大陆加速)
# homebrew-core 浅镜像(每 6 小时同步)
git clone --depth 1 https://homebrewloongarch64.site/git/homebrew-core.git
# 官方 formulae JSON 快照
curl -fsSL https://homebrewloongarch64.site/brew/api/formula.json -o formula.json
# 本 tap 的 git 源
git clone https://homebrewloongarch64.site/git/homebrew-loong64.git
2. 使用 AOSC OS DEB 源
为 AOSC OS 提供本地构建的包,仓库经 GPG 签名。
# 导入签名公钥
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://homebrewloongarch64.site/aosc/thirdparty.gpg \
| sudo tee /etc/apt/keyrings/aosc-thirdparty.gpg >/dev/null
# 添加源
echo "deb [signed-by=/etc/apt/keyrings/aosc-thirdparty.gpg] https://homebrewloongarch64.site/aosc stable main" \
| sudo tee /etc/apt/sources.list.d/aosc-thirdparty.list
# 刷新并安装
sudo oma refresh && sudo oma install v2raya
当前提供:v2raya 2.5.10、zerotier-one 1.16.2、hello、greeter
3. 项目与文档
签名指纹:E2046CDF0686737D2F993DE4B022CC8074439166
页面由发布流水线自动生成,密钥不离开构建机。