Try to upgrade from Grafana 11.0.0-preview to Grafana 11.0.0 using rpm manually but system saying preview is the newer version

Hi team~
I just installed the Grafana 11.0.0-preview on my CentOS9 stream manually by using
“sudo yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-11.0.0~preview-1.x86_64.rpm
, then after few weeks Grafana 11.0.0 just release at May 14, 2024.
I’m try to use
"wget https://dl.grafana.com/enterprise/release/grafana-enterprise-11.0.0-1.x86_64.rpm

sudo rpm -Uvh grafana-enterprise-11.0.0-1.x86_64.rpm"

to upgrade manually but system is saying
“package grafana-enterprise-11.0.0_preview-1.x86_64 (which is newer than grafana-enterprise-11.0.0-1.x86_64) is already installed”
Is this a BUG or what could I reslove this , thanks

Hey @tungt

This is not a bug but rather a versioning conflict! The “preview” version of Grafana 11.0.0 you installed is being recognized as a newer version compared to the official release. It’s because how the versioning is interpreted by the RPM package manager.

You have two ways for this: remove the preview version and then install the official release, or force the installation of the official release.

  1. Remove then install the official:
sudo yum remove grafana-enterprise

wget https://dl.grafana.com/enterprise/release/grafana-enterprise-11.0.0-1.x86_64.rpm
sudo rpm -Uvh grafana-enterprise-11.0.0-1.x86_64.rpm
  1. Force the Installation
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-11.0.0-1.x86_64.rpm
sudo rpm -Uvh --oldpackage grafana-enterprise-11.0.0-1.x86_64.rpm

Make sure to have backup of your Grafana…

Let me know how it goes!
Regards

Hi sir,
Thanks for the advice,
I tried forced the Installation and it worded