Error Install Grafana RPM repository on AlmaLinux 9.6

  • Versions: AlmaLinux 9.6 x64 y Grafana 12.2.0

  • Process Error: Install Grafana from RPM repository as indicated in the documentation in the following link
    Install Grafana on RHEL or Fedora | Grafana documentation

  • By performing the following steps:

    step 1: wget -q -O gpg.key https://rpm.grafana.com/gpg.key
    step 2: sudo rpm --import gpg.key
    step 3: Create grafana repo file on /etc/yum.repos.d/grafana.repo with this content:
    step 4: Update metadata repositories with this command “sudo dnf update”

  • When running the command sudo dnf update it gives me the following error:

    [myaccount@MV-Grafana2 ~]$ sudo dnf update
    grafana 3.2 kB/s | 712 B 00:00
    grafana 19 kB/s | 2.4 kB 00:00
    grafana 4.1 kB/s | 712 B 00:00
    Error: Failed to download metadata for repo ‘grafana’: repomd.xml GPG signature verification error: Bad GPG signature

Best regards

I’ve found a temporary solution to the OSS version of PGP issue in the central repository. The configuration file must be changed with the following information:

[grafana]
name=Grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

I hope this solution helps someone :D.