Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

mender

> 编程语言
Open source

Mender over-the-air software updater client.

1.2K stars0 likes0 views
WebsiteGitHub

About

Mender over-the-air software updater client.

Overview

Mender is an open-source, over-the-air (OTA) update manager for IoT and embedded Linux devices. Its client-server architecture enables the central management of software deployments, including functionality such as dynamic grouping, phased deployments, and delta updates. Mender also supports powerful extensions to configure, monitor, and troubleshoot devices. Features include remote terminal access, port forwarding, file transfer, and device configuration. It integrates with Azure IoT Hub and AWS IoT core.

Table of Contents

  • Why Mender?
  • Where to start?
  • Mender documentation
  • About this repository
  • Contributing
  • License
  • Security disclosure
  • Installing from source
  • Cross-compiling
  • Community
  • Authors

Why Mender?

Mender enables secure and robust over-the-air updates for all device software. Some of the core functionalities include:

  • Flexible management server and client architecture for secure OTA software update deployments and fleet management.
  • Standalone deployment support, triggered at the device-level (no server needed) for unconnected or USB delivered software updates.
  • Automatic rollback upon update failure with an A/B partition design.
  • Support for a full root file system, application, files, and containerized updates.
  • ✅ Dynamic grouping, phased rollouts to ensure update success.
  • ⚙️ Advanced configuration, monitoring, and troubleshooting for software updates.
  • Extensive logging, audits, reporting, and security and regulatory compliance capabilities.

Our mission and goals

Embedded product teams often create homegrown updaters at the last minute due to the need to fix bugs in field-deployed devices. However, the essential requirement for an embedded update process is robustness. For example, loss of power at any time should not brick a device. This creates a challenge, given the time constraints to develop and maintain a homegrown updater.

Mender aims to address this challenge with a robust and easy to use updater for embedded Linux devices, which is open source and available to anyone.

Robustness is ensured with atomic image-based deployments using a dual A/B rootfs partition layout. This makes it always possible to roll back to a working state, even when losing power at any time during the update process.

Ease of use is addressed with an intuitive UI, comprehensive documentation, a meta layer for the Yocto Project for easy integration into existing environments, and high-quality software (see the test coverage badge).

Where to start?

Mender (Commercial) Mender (Open source)
Ready to get started immediately? The commercial version of Mender allows you to simply connect your devices to a hosted, enterprise-grade, and multi-region backend. Capabilities include: advanced fleet management, top-tier security, regulatory compliance features, role-based access control (RBAC), dynamic groups, delta updates, and mutual TLS support.

Free for 12 months, up to 10 devices, get started with Mender today. | Alternatively, the open-source version of Mender allows you to start updating devices in a quick, secure, and robust method. Learn more about how to get started.

For rollback functionality, the Mender client requires an integration with the boot loader and a partition layout. Support for rollback functionality is most easily built as part of your Yocto Project image by using the meta layer for the Yocto Project. |

Compare the complete list of features and functionality available at the features page.

Mender documentation

The documentation is a great place to learn more, especially:

  • Overview — learn more about Mender, it's design, and capabilities.
  • Debian — get started with updating your Debian devices.
  • Yocto — take a look at our support for Yocto.

Would you rather dive into the code? Then you are already in the right place!


High-level architecture overview

The chart above depicts a typical Mender architecture with the following elements:

  • Back End & User Interface: The shaded sky blue area is the Mender product which comprises the back end and the user interface (UI).
  • Clients: The Mender client runs on the devices represented by the devices icon.
  • Gateway: All communications between devices, users, and the back end occur through an API gateway. Traefik is used for the API gateway. The gateway routes the requests coming from the clients to the right micro-service(s) in the Mender back end.
  • NATS message broker: some of the micro-services use NATS as a message broker to support the Mender device update troubleshooting and the orchestration within the system.
  • Mongo DB: persistent database for the Mender back end micro-services.
  • Storage layer: in both hosted and on-premise Mender, an AWS S3 Bucket (or S3 API-compatible) or an Azure Storage Account storage layer is used to store the artifacts.
  • Redis: in-memory cache to enable device management at scale.

You can find more detailed information in our documentation.


About this repository

This repository contains the Mender client updater, which can be run in standalone mode (manually triggered through its command line interface) or managed mode (connected to the Mender server).

Mender provides both the client-side updater and the backend and UI for managing deployments as open source. The Mender server is designed as a microservices architecture and comprises several repositories.

Contributing

We welcome and ask for your contribution. If you would like to contribute to Mender, please read our guide on how to best get started contributing code or documentation.

License

Mender is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Security disclosure

We take security very seriously. If you come across any issue regarding security, please disclose the information by sending an email to [email protected]. Please do not create a new public issue. We thank you in advance for your cooperation.

Installing from source

Requirements

  • C++ compiler
  • cmake
  • libarchive-dev, libboost-all-dev, liblmdb-dev, libdbus-1-dev, libssl-dev and libsystemd-dev packages

For Debian/Ubuntu, the prerequisites can be installed by

bash
sudo apt install git build-essential cmake libarchive-dev liblmdb-dev libboost-all-dev libssl-dev libdbus-1-dev libsystemd-dev

Adjust as needed for other distributions.

Steps

To install Mender C++ client on a device from source, first clone the repository:

bash
git clone https://github.com/mendersoftware/mender.git

Change into the cloned repository:

bash
cd mender

Use git submodule to fetch additional dependencies:

bash
git submodule update --init --recursive

Create a build directory and enter it:

bash
mkdir build
cd build

Configure and start the build:

cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make

Make sure you configure installation to the /usr path prefix, as the executables required by systemd units and D-Bus policy file must be placed in the canonical paths.

Install the client:

bash
sudo make install

Client setup

The required configuration files for client operation can be created in several ways.

  • for an interactive setup process, use the mender-setup tool.
  • in a Yocto-based set up, those are generated as part of the build process

Installation notes

Installing this way does not offer a complete system updater. For this, you need additional integration steps. Depending on which OS you are using, consult one of the following:

  • System updates: Debian family
  • System updates: Yocto Project

However, it is possible to use Update Modules and update other parts of the system.

In order to connect to a Mender server, you either need to get a Mender Professional account, or set up a server environment. If you are setting up a demo environment, you will need to put the support/demo.crt file into /etc/mender/server.crt on the device and add the configuration line below to /etc/mender/mender.conf after the installation steps above:

  "ServerCertificate": "/etc/mender/server.crt"

Important: demo.crt is not a secure certificate and should only be used for demo purposes, never in production.

Cross-compiling

Generic cross-compilation procedures using cmake apply.

During the current, early stage of development using a higher, cross-compilation aware build system such as Yocto is advisable. Once things are sufficiently stabilized, a set of steps for manual cross-compilation will be added here.

Aarch64

Install the requirements for aarch64, e.g. for a Debian-based system:

bash
sudo dpkg --add-architecture arm64
sudo apt update && sudo apt install git crossbuild-essential-arm64 cmake libarchive-dev:arm64 liblmdb++-dev:arm64 libboost-log-dev:arm64 libssl-dev:arm64 libdbus-1-dev:arm64 libsystemd-dev:arm64

Configure and build:

cmake -DCMAKE_TOOLCHAIN_FILE=cmake/aarch64.cmake -B build .
cmake --build build

QNX

Note that QNX support is still experimental, and not supported.

Before building Mender you need to make sure its two dependencies -- Boost and libarchive -- are available in the QNX build environment (QNX SDP). Use instructions from https://github.com/qnx-ports/boost to install Boost into it (make sure to use --prefix=/usr as the instructions suggest) and https://github.com/libarchive/libarchive/ to install libarchive (with --host=aarch64-unknown-nto-qnx8.0.0 CC="qcc -Vgcc_ntoaarch64le" set for ./configure).

Then, with ~/qnx800 containing QNX SDP 8.0 with Boost and libarchive added, Mender can be configured and built with the following commands:

bash
mkdir build && cd build
source ~/qnx800/qnxsdp-env.sh
export QNX_TARGET_ARCH=aarch64le
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/qnx.cmake -DMENDER_USE_DBUS=OFF -DMENDER_EMBED_MENDER_AUTH=ON -DMENDER_USE_LMDB=OFF
make

A binary tarball with the mender-update binary and all its dependencies can be created by using the dist-package target with the MENDER_DIST_DEPS=ON build option:

cmake .. -DMENDER_DIST_DEPS=ON
make dist-package

and contents of such a tarball can be inspected with:

tar -tvf ./mender-*.tar.gz

In order to install such a tarball on a Raspberry Pi 5 running QNX it needs to be copied over to the Raspberry Pi (e.g. with scp) and extracted with the following command:

bash
sudo tar -x --skip-old-files --strip-components=1 -C / -f ./mender-*.tar.gz

**It's important to use the

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言