docs: apt-key deprecation

Ayman Bagabas created

Use the recommended keyrings path /etc/apt/keyrings

Per: https://manpages.debian.org/unstable/apt/apt-key.8.en.html#DEPRECATION

Change summary

README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Detailed changes

README.md 🔗

@@ -60,12 +60,12 @@ pacman -S soft-serve
 # Nix
 nix-env -iA nixpkgs.soft-serve
 
-# Debian/Ubuntu
-echo "deb https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
-curl https://repo.charm.sh/apt/gpg.key | sudo apt-key add -
+sudo mkdir -p /etc/apt/keyrings
+curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
+echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
 sudo apt update && sudo apt install soft-serve
 
-# Fedora
+# Fedora/RHEL
 echo '[charm]
 name=Charm
 baseurl=https://repo.charm.sh/yum/