Skip to content

Commit

Permalink
doc: update installation for debian 12.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuizhuhaomeng authored Dec 29, 2023
1 parent b9e6de0 commit 34d8a37
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion v2/cn/linux-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ https://openresty.org/package/pubkey.gpg
步骤一:安装导入 GPG 公钥时所需的几个依赖包(整个安装过程完成后可以随时删除它们):

```bash
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates lsb-release
```

步骤二:导入我们的 GPG 密钥:
Expand Down Expand Up @@ -224,8 +224,14 @@ sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates

步骤二:导入我们的 GPG 密钥:

- debian <= 11 的版本
```bash
wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
```

- debian >= 12 的版本
```bash
wget -O - https://openresty.org/package/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/openresty.gpg
```

步骤三:添加我们官方 APT 仓库。
Expand Down
8 changes: 7 additions & 1 deletion v2/en/linux-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ run the following commands (only need to run once for each system):
Step 1: we should install some prerequisites needed by adding GPG public keys (could be removed later):

```bash
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates
sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates lsb-release
```

Step 2: import our GPG key:
Expand Down Expand Up @@ -255,8 +255,14 @@ sudo apt-get -y install --no-install-recommends wget gnupg ca-certificates

Step 2: import our GPG key:

- For debian <= 11
```bash
wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
```

- For debian >= 12
```
wget -O - https://openresty.org/package/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/openresty.gpg
```

Step 3: add the our official APT repository.
Expand Down

0 comments on commit 34d8a37

Please sign in to comment.