How To Install firmware-linux-nonfree on Debian 12

Learn how to install firmware-linux-nonfree on Debian 12 with this tutorial. firmware-linux-nonfree is Binary firmware for various drivers in the Linux kernel (metapackage)

Introduction

In this tutorial we learn how to install firmware-linux-nonfree on Debian 12.

What is firmware-linux-nonfree

firmware-linux-nonfree is:

This package depends on non-free firmware which may be used with drivers in the Linux kernel.

There are three methods to install firmware-linux-nonfree on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install firmware-linux-nonfree Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install firmware-linux-nonfree using apt-get by running the following command:

sudo apt-get -y install firmware-linux-nonfree

Install firmware-linux-nonfree Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install firmware-linux-nonfree using apt by running the following command:

sudo apt -y install firmware-linux-nonfree

Install firmware-linux-nonfree Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install firmware-linux-nonfree using aptitude by running the following command:

sudo aptitude -y install firmware-linux-nonfree

How To Uninstall firmware-linux-nonfree on Debian 12

To uninstall only the firmware-linux-nonfree package we can use the following command:

sudo apt-get remove firmware-linux-nonfree

Uninstall firmware-linux-nonfree And Its Dependencies

To uninstall firmware-linux-nonfree and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove firmware-linux-nonfree

Remove firmware-linux-nonfree Configurations and Data

To remove firmware-linux-nonfree configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge firmware-linux-nonfree

Remove firmware-linux-nonfree configuration, data, and all of its dependencies

We can use the following command to remove firmware-linux-nonfree configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge firmware-linux-nonfree

Dependencies

firmware-linux-nonfree have the following dependencies:

References

Summary

In this tutorial we learn how to install firmware-linux-nonfree package on Debian 12 using different package management tools: apt, apt-get and aptitude.