# 使用 Homebrew 安装 aria2
brew install aria2
# 创建配置文件aria2.conf和空对话文件aria2.session
mkdir ~/.aria2 && cd ~/.aria2
touch aria2.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat > /etc/yum.repos.d/CentOS-Stream-AppStream.repo << EOF | |
| # CentOS-Stream-AppStream.repo | |
| # | |
| # The mirrorlist system uses the connecting IP address of the client and the | |
| # update status of each mirror to pick current mirrors that are geographically | |
| # close to the client. You should use this for CentOS updates unless you are | |
| # manually picking other mirrors. | |
| # | |
| # If the mirrorlist does not work for you, you can try the commented out | |
| # baseurl line instead. |