# Installation Telegraf compiles to a single static binary, which makes it easy to install. Both InfluxData and the community provide for a wide range of methods to install Telegraf from. For details on each release, view the [changelog][] for the latest updates and changes by version. [changelog]: /CHANGELOG.md There are many places to obtain Telegraf from: * [Binary downloads](#binary-downloads) * [Homebrew](#homebrew) * [InfluxData Linux package repository](#influxdata-linux-package-repository) * [Official Docker images](#official-docker-images) * [Helm charts](#helm-charts) * [Nightly builds](#nightly-builds) * [Build from source](#build-from-source) * [Custom builder](#custom-builder) ## Binary downloads Binary downloads for a wide range of architectures and operating systems are available from the [InfluxData downloads][] page or from the [GitHub Releases][] page. [InfluxData downloads]: https://www.influxdata.com/downloads [GitHub Releases]: https://github.com/influxdata/telegraf/releases ## Homebrew A [Homebrew Formula][] for Telegraf that updates after each release: ```shell brew update brew install telegraf ``` Note that the Homebrew organization builds Telegraf itself and does not use binaries built by InfluxData. This is important as Homebrew builds with CGO, which means there are some differences between the official binaries and those found with Homebrew. [Homebrew Formula]: https://formulae.brew.sh/formula/telegraf ## InfluxData Linux package repository InfluxData provides a package repo that contains both DEB and RPM packages. ### DEB For DEB-based platforms (e.g. Ubuntu and Debian) run the following to add the repo GPG key and setup a new sources.list entry: ```shell # influxdata-archive_compat.key GPG fingerprint: # 9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E wget -q https://repos.influxdata.com/influxdata-archive_compat.key echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list sudo apt-get update && sudo apt-get install telegraf ``` ### RPM For RPM-based platforms (e.g. RHEL, CentOS) use the following to create a repo file and install telegraf: ```shell # influxdata-archive_compat.key GPG fingerprint: # 9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E cat <