From: Matthias Kruk Date: Sun, 9 Oct 2022 03:25:01 +0000 (+0900) Subject: README: Don't use apt-key in installation instructions X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=dab08ca9a1535dd88cdff6edf3b2ef61687bfc0e;p=toolbox README: Don't use apt-key in installation instructions The installation instructions for Debian-based distros use apt-key to add the repository's GPG key, however apt-key is deprecated. This commit changes the instructions to use /etc/apt/trusted.gpg.d instead of apt-key. --- diff --git a/README.md b/README.md index 500ca24..adc3d48 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ minimal publisher using the *ipc* module. . toolbox.sh include "ipc" - + endp=$(ipc_endpoint_open) ipc_endpoint_publish "$endp" "mytopic" "Hello world" @@ -31,13 +31,13 @@ And this is the corresponding subscriber. . toolbox.sh include "ipc" - + endp=$(ipc_endpoint_open) ipc_endpoint_subscribe "$endp" "mytopic" - + if msg=$(ipc_endpoint_recv "$endp"); then data=$(ipc_msg_get_data "$msg") - + echo "Received message: $data" fi @@ -76,7 +76,7 @@ If you are using a Debian-based distribution, you can install toolbox through ap First, import the GPG key used to sign packages in the repository and make sure you have `apt-transport-https` installed. - # wget -O - -- https://deb.m10k.eu/deb.m10k.eu.gpg.key | apt-key add - + # curl --get https://deb.m10k.eu/deb.m10k.eu.gpg > /etc/apt/trusted.gpg.d/deb.m10k.eu.gpg # apt-get install apt-transport-https Then add the following line to your `/etc/apt/sources.lst`.