首先信任 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
安装 erlang
即可
sudo apt-get update
sudo apt-get install -y erlang
首先信任 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://mirrors.qlu.edu.cn/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