Linux Package GPG Signing Verification
This document describes how to verify the GPG signature on the BDOT Collector's Linux packages.
Last updated
Was this helpful?
Was this helpful?
command -v gpg
command -v arsudo apt-get update
# gpg
sudo apt-get install gpg
# ar
sudo apt-get install binutilsgpg --import "bdot-public-gpg-key.asc"
if compgen -G "$TMP_DIR/gpg/deb-revocations/*" > /dev/null; then
for key in "$TMP_DIR/gpg/deb-revocations/"*; do
gpg --import "$key"
done
fiar x _gpgorigin observiq-otel-collector_<VERSION>_linux_<ARCH>.debar p observiq-otel-collector_v1.88.0_linux_amd64.deb debian-binary control.tar.gz data.tar.gz | gpg --verify _gpgorigin -gpg --list-keys
# find the BDOT collector key, identify its fingerprint
gpg --edit-key <FINGERPRINT>
gpg> trust
# select trust level
gpg> savesudo rpm --import "bdot-public-gpg-key.asc"while IFS= read -r id; do
sudo rpm -q "$id"
done < rpm-revocations.txtsudo rpm -e "$id"sudo vi /etc/yum.conf[main]
gpgcheck=1
localpkg_gpgcheck=1sudo yum install observiq-otel-collector_<VERSION>_linux_<ARCH>.rpmsudo vi /etc/dnf/dnf.conf[main]
gpgcheck=1
localpkg_gpgcheck=1sudo dnf install observiq-otel-collector_<VERSION>_linux_<ARCH>.rpmsudo rpm --checksig -v observiq-otel-collector_<VERSION>_linux_<ARCH>.rpm