How to Install the Raspberry Pi Imager on Debian 12 (Bookworm)

The Raspberry Pi Imager is a versatile tool designed to simplify the process of installing operating systems on Raspberry Pi devices. It’s an essential utility for Raspberry Pi enthusiasts, allowing users to easily burn images to SD cards, ensuring a hassle-free setup of their Raspberry Pi. In this guide, we’ll walk through the steps to install the Raspberry Pi Imager on Debian 12 (Bookworm), a popular Linux distribution.

Prerequisites

Before proceeding, ensure you have the following:

  • Works up to Raspberry Pi Imager version 1.8.5
  • A system running Debian 12 (Bookworm).
  • Internet connectivity.
  • Basic knowledge of using the terminal.

Step-by-Step Installation Guide

Step 1: Downloading the Source Code

  • Open the terminal.
  • Navigate to the directory to where you want to clone the repository:
cd ~/Downloads/source/
  • Clone the Raspberry Pi Imager repository:
git clone --depth 1 https://github.com/raspberrypi/rpi-imager

Step 2: Building the Software

  • Navigate to the rpi-imager directory:
cd rpi-imager
  • Build the Debian package:
debuild -uc -us

Step 3: Installing the Raspberry Pi Imager

  • Once the build process is complete, return to the parent directory:
cd ..
  • Install the Debian package. You can use either of the following commands:
  • Using dpkg:
sudo dpkg -i rpi-imager*.deb
  • Or using apt:
sudo apt install ./rpi-imager*.deb

Step 4: Updating the Software

To keep the Raspberry Pi Imager up-to-date, follow these steps:

  • Navigate to the rpi-imager directory:
cd ~/Downloads/source/rpi-imager
  • Pull the latest changes from the repository:
git pull

Congratulations! You’ve successfully installed the Raspberry Pi Imager on Debian 12 (Bookworm). This tool is a gateway to exploring the vast possibilities of the Raspberry Pi, allowing you to easily set up various operating systems for your projects.

Remember to check for updates regularly to ensure you have the latest features and security enhancements. Happy tinkering with your Raspberry Pi!

2 thoughts on “How to Install the Raspberry Pi Imager on Debian 12 (Bookworm)”

  1. The instructions for Debian 10 appear to be identical, but this process fails for me with the following:

    CMake Error at CMakeLists.txt:110 (message):
    Missing suitable Qt library (must be at least version 5.14)

    I have installed Qt-5.15.2, and running `make install` there causes it to be installed in /usr/local/Qt-5.15.2.

    Still I see the error above.

    How to I get `debuild -uc -us -d` for `rpi-imager` to recognize that I’ve installed this library?

    Reply
    • You can try the following:

      Define LD_LIBRARY_PATH and PKG_CONFIG_PATH to include the paths of your Qt installation (/usr/local/Qt-5.15.2). This helps the build process locate the Qt libraries.

      Check that the correct Qt version is recognized by running qmake –version.

      Modify configuration files in rpi-imager, such as CMakeLists.txt, to ensure they refer to your custom Qt installation path.

      Run debuild -uc -us -d again to rebuild the package.

      Reply

Leave a Comment