mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
2.0 KiB
2.0 KiB
| category | layout | mirrorid |
|---|---|---|
| help | help | erlang-solutions |
erlang-solutions 镜像使用指南
Debian/Ubuntu 用户
首先信任 erlang-solutions 的 GPG 公钥:
# Debian 用户
curl -s https://packages.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
# Ubuntu 用户
curl -s https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
再选择你的 Debian / Ubuntu 版本,文本框中内容写进 /etc/apt/sources.list.d/erlang-solutions.list
Debian 8 (Jessie)
Debian 9 (Stretch)
Debian 10 (Buster)
Ubuntu 16.04 LTS
Ubuntu 18.04 LTS
Ubuntu 20.04 LTS
安装 erlang 即可
sudo apt-get update
sudo apt-get install -y erlang
CentOS 用户
首先信任 erlang-solutions 的 GPG 公钥:
rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
新建 /etc/yum.repos.d/erlang-solutions.repo,内容为
[erlang-solutions]
name=CentOS $releasever - Erlang Solutions
baseurl=https://{{ site.hostname }}/erlang-solutions/centos/$releasever/
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
刷新缓存并安装 erlang 即可。
sudo yum makecache
sudo yum install erlang