1
0
mirror of https://github.com/gluster/glusterdocs.git synced 2026-02-05 15:47:01 +01:00

Do not use apt-key anymore as it is deprecated (#783)

Instead of using  `apt-key` to download/install the GlusterFS GPG key, we download it to /etc/apt/keyrings/ and explicitly use it in the gluster.list sources file.

Signed-off-by: Kevin Köllmann <mail@kevinkoellmann.de>
This commit is contained in:
Kevin Köllmann
2023-09-11 07:59:13 +02:00
committed by GitHub
parent e3d74a1ef6
commit c277f0c6ef

View File

@@ -11,16 +11,16 @@ Packages are provided according to this [table](./Community-Packages.md).
###### For Debian
Add the GPG key to apt:
Download the GPG key to apt config directory:
```console
wget -O - https://download.gluster.org/pub/gluster/glusterfs/9/rsa.pub | apt-key add -
wget -O - https://download.gluster.org/pub/gluster/glusterfs/9/rsa.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/gluster.gpg
```
If the rsa.pub is not available at the above location, please look here https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub and add the GPG key to apt:
```console
wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | apt-key add -
wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/gluster.gpg
```
Add the source:
@@ -29,7 +29,7 @@ Add the source:
DEBID=$(grep 'VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')
DEBVER=$(grep 'VERSION=' /etc/os-release | grep -Eo '[a-z]+')
DEBARCH=$(dpkg --print-architecture)
echo deb https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/${DEBID}/${DEBARCH}/apt ${DEBVER} main > /etc/apt/sources.list.d/gluster.list
echo "deb [signed-by=/etc/apt/trusted.gpg.d/gluster.gpg] https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/${DEBID}/${DEBARCH}/apt ${DEBVER} main" > /etc/apt/sources.list.d/gluster.list
```
Update package list: