# linuxbrew-cn **Repository Path**: RubyMetric/linuxbrew-cn ## Basic Information - **Project Name**: linuxbrew-cn - **Description**: 🍺 Linuxbrew 国内一键安装脚本 - **Primary Language**: Shell - **License**: BSD-2-Clause - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 30 - **Forks**: 6 - **Created**: 2020-08-04 - **Last Updated**: 2024-09-06 ## Categories & Tags **Categories**: lamp **Tags**: None ## README
# linuxbrew-cn Package manager `brew` installer on Linux
## 安装 首先需要确保您的系统已安装 1. `git` 2. `Ruby` >= 2.6 3. `curl` ```bash # 安装 bash -c "$(curl -fsSL https://gitee.com/RubyMetric/linuxbrew-cn/raw/main/install.sh)" # 卸载 bash -c "$(curl -fsSL https://gitee.com/RubyMetric/linuxbrew-cn/raw/main/uninstall.sh)" ``` 安装阶段两次pull 1. 第一次 50MB 左右 2. 第二次 400MB 左右
## 常用命令 ```bash # 安装某个包 brew install formula-name # 卸载某个包 brew remove formula-name # 升级某个包 brew upgrade formula-name # 清理下载的过时文件 brew cleanup # 更新Homebrew和所有的formulae brew update -v ```
## Changelog #### 2022.2.7 上游的`linuxbrew-core`已经停滞几个月了,它们重新合并进入了`homebrew-core`. 1. 安装脚本与上游同步 2. 切换至`homebrew-core` 3. 继续使用`tuna`镜像 4. 同步上游卸载脚本 阿里云提供的镜像无法使用,继续使用回`tuna` 在以下系统上测试通过: 1. Ubuntu 21.04 #### 2020.8.5 根据[HomebrewCN](https://gitee.com/cunkai/HomebrewCN),创建该仓库,使用清华大学`tuna`镜像站提供的仓库. 在以下系统上测试通过: 1. Ubuntu 20.04 2. Ubuntu mate 20.04