Skip to content

Commit

Permalink
Do not use apt-key anymore as it is deprecated (#783)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
koelle25 authored Sep 11, 2023
1 parent e3d74a1 commit c277f0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/Install-Guide/Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit c277f0c

Please sign in to comment.