Skip to content

Commit

Permalink
linux-packages: switched over to our own APT repo on openresty.org.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Jun 11, 2017
1 parent 26aafc1 commit b2f2494
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
25 changes: 14 additions & 11 deletions v2/cn/linux-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,25 @@
2017.03 x86_64
```

我们仓库的所有元数据和二进制包都是用下面的 GPG 密钥, `0xD5EDEB74` 签名的:
https://openresty.org/package/pubkey.gpg
我们仓库的所有元数据(以及 rpm 二进制包)都是用下面的 GPG 密钥, `0xD5EDEB74` 签名的:

唯一的区别是 Ubuntu 的 PPA 仓库。他们用的 GPG key 是 `2E61F1063ED1B4FD`
https://openresty.org/package/pubkey.gpg

# Ubuntu

你可以在你的 Ubuntu 系统中添加 `openresty` 仓库,这样就可以便于未来安装或更新我们的软件包(通过 `yum update` 命令)。
运行下面的命令就可以添加我们的仓库(每个系统只需要运行一次):
你可以在你的 Ubuntu 系统中添加我们的 APT 仓库,这样就可以便于未来安装或更新我们的软件包(通过 `yum update` 命令)。
运行下面的命令就可以添加仓库(每个系统只需要运行一次):

```bash
# 安装 add-apt-repository 命令:
# 导入我们的 GPG 密钥:
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -

# 安装 add-apt-repository 命令
# (之后你可以删除这个包以及对应的关联包)
sudo apt-get -y install software-properties-common
# 添加我们官方的 PPA 仓库:
sudo add-apt-repository -y ppa:openresty/ppa
sudo apt-get -y install software-properties-common

# 添加我们官方 official APT 仓库:
sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"

# 更新 APT 索引:
sudo apt-get update
Expand Down Expand Up @@ -100,7 +103,7 @@ https://openresty.org/package/pubkey.gpg
运行下面的命令就可以添加我们的仓库(每个系统只需要运行一次):

```bash
# 输入我们的 GPG 密钥:
# 导入我们的 GPG 密钥:
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -

# 安装 add-apt-repository 命令
Expand Down Expand Up @@ -135,7 +138,7 @@ https://openresty.org/package/pubkey.gpg
运行下面的命令就可以添加我们的仓库(每个系统只需要运行一次):

```bash
# 输入我们 GPG 密钥:
# 导入我们 GPG 密钥:
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -

# 安装 add-apt-repository 命令:
Expand Down
13 changes: 7 additions & 6 deletions v2/en/linux-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,26 @@ OpenResty<sup>&reg;</sup> provides official pre-built packages for the following
2017.03 x86_64
```

All our repositories' metadata and binary packages are signed by the following GPG key, `0xD5EDEB74`:
All our repositories' metadata (and rpm binary packages) are signed by the following GPG key, `0xD5EDEB74`:

https://openresty.org/package/pubkey.gpg

The only exception is Ubuntu's PPA repositories. They use the `2E61F1063ED1B4FD` GPG key instead.

# Ubuntu

You can add the `openresty` repository to your Ubuntu system so as to easily install
You can add our APT repository to your Ubuntu system so as to easily install
our packages and receive updates in the future (via the `yum update` command). To add the repository, just
run the following commands (only need to run once for each system):

```bash
# import our GPG key:
wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -

# for installing the add-apt-repository command
# (you can remove this package and its dependencies later):
sudo apt-get -y install software-properties-common

# add the our official PPA repository:
sudo add-apt-repository -y ppa:openresty/ppa
# add the our official APT repository:
sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"

# to update the APT index:
sudo apt-get update
Expand Down

0 comments on commit b2f2494

Please sign in to comment.