22

How do I install non-free firmware using the advanced package tool (APT) in Debian 12 (bookworm)?

1 Answer 1

28

Add the repository non-free-firmware to the APT software package sources in the /etc/apt/sources.list file, and do apt update with the root permission.

For example, set the content of the file to this:

deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware

deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware

deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware

. And then, install firmware packages that you need, with the apt install command.


Starting from Debian 12 (bookworm), all non-free firmware packages, such as firmware-iwlwifi, firmware-amd-graphics, or firmware-misc-nonfree, have been moved from the repository non-free to their own repository, non-free-firmware.

The Debian project has taken the decision in October 2022 to create a new repository non-free-firmware and include its content on installation media for Debian 12 (bookworm) to make things easier for the users. This means that the newer Debian 12 installer will automatically install such firmware along with the operating system if needed.

3
  • 1
    It also looks that Debian's own online search web pages have trouble finding any package that was moved in such section (at least as of today 2023-02-19).
    – A.B
    Feb 19, 2023 at 12:54
  • 1
    Thanks for that. It's also worth noting that very often non-free packages from other sources (e.g. a manufacturer or somebody who's extracted the firmware from a Windows driver) will be in a .deb file to be installed by dpkg. Feb 19, 2023 at 18:32
  • 2
    It's also worth mentioning that to add the source in Debian 12 Bookworm, there is no need to directly edit the sources.list as the same thing can be accomplished in a desktop environment such as GNOME, by opening the "software" app and selecting the hamburger menu, under "software repositories" you can just check the (non-free) source which will add the non-free-firmware repository automatically. Jan 29 at 23:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .