Debian official repository for influxdb2

I see that the official package in Debian repository is still 1.6.7 (Debian -- Details of package influxdb in sid), while we’re now at 2.1.1. I see a closed issue about this in Github:

Is there a reason for this? Is there some incompatibility? Or is it just the lack of time (what I would definitely understand obviously).

Thanks for your support!

Hello @biva,
I believe it’s just lack of time. @mhall119 do you know?

Hi Biva,

The package in the default Debian repository isn’t actually provided or maintained by InfluxData. It’s built by the Debian Go Maintainers team using the source code in our Git repository. It’s up to them to update it to the latest version (and to provide a new package for influxdb2).

Unfortunately they use an entirely different build system than we do, so it’s not just a matter of them cloning our Git repo and building their own packages. They will need to update their build configurations to get the latest version of InfluxDB’s source code and any dependencies. It’s likely they they simply don’t have the time or know of the demand for them to provide an updated version.

InfluxData does support Debian user directly, by hosting our own APT repository and publishing updated packages there as part of our regular release process. You can add our repository and install InfluxDB from there using the following commands:

wget -qO- | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdb.gpg > /dev/null
export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc)
echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg]${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list > /dev/null

sudo apt-get update && sudo apt-get install influxdb2

If you’re not familiar with these commands they will:

  1. Download InfluxData’s GPG key, which we use to cryptographically sign all of our packages, so that apt can verify them
  2. Add the InfluxData APT repository to your list of repositories that Debian will check for new packages
  3. Install the latest version of the influxdb2 package. In keeping with Debian’s practices we use a different package name for version 2 because it is a significant change from version 1.

Wow, thank you so much @Anaisdg for your reactivity and @mhall119 for your quick and complete answer. You not only have great software but also great community support :heart_eyes_cat:

I fully understand the situation, and I followed the instructions to use your repository for Debian, which works like a charm.

If I may give you feedback on the documentation, the installation explanation for the previous versions (for example Installing InfluxDB OSS | InfluxDB OSS 1.7 Documentation) was clearer for me, because we could directly see that using the repo was possible. In the doc for 2.1 (Install InfluxDB | InfluxDB OSS 2.1 Documentation), I first understood that it wasn’t possible anymore, and that I had to download the .deb file (I read “Download and install the appropriate .deb or .rpm file”). And I discovered afterwards the repository, clicking on the InfluxData downloads page link (and which corresponds to your explanation :point_up: ).

Again, thank you so much for your support and explanation :slight_smile:

And if you’re interested, I’m using (and try to contribute to) the YunoHost project (“Y U No Host”), which makes self-hosting easy. It includes a lot of applications, notably Grafana/InfluxDB.

l’m trying to update the app so that it uses v2 and your repositories in there (forum post and Github PR). If you’re interested, you’re more than welcome! :wink:

(sorry for the multiple posts, but as a new user, I’m limited to 2 links per post :frowning: )