How To Install libfsverity-dev on Debian 12

Learn how to install libfsverity-dev on Debian 12 with this tutorial. libfsverity-dev is Development files for fs-verity

Introduction

In this tutorial we learn how to install libfsverity-dev on Debian 12.

What is libfsverity-dev

libfsverity-dev is:

fs-verity is a Linux kernel feature that does transparent on-demand integrity/authenticity verification of the contents of read-only files, using a hidden Merkle tree (hash tree) associated with the file. The mechanism is similar to dm-verity, but implemented at the file level rather than at the block device level.

This package contains the libfsverity development libraries and header files.

There are three methods to install libfsverity-dev 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 libfsverity-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libfsverity-dev using apt-get by running the following command:

sudo apt-get -y install libfsverity-dev

Install libfsverity-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libfsverity-dev using apt by running the following command:

sudo apt -y install libfsverity-dev

Install libfsverity-dev 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 libfsverity-dev using aptitude by running the following command:

sudo aptitude -y install libfsverity-dev

How To Uninstall libfsverity-dev on Debian 12

To uninstall only the libfsverity-dev package we can use the following command:

sudo apt-get remove libfsverity-dev

Uninstall libfsverity-dev And Its Dependencies

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

sudo apt-get -y autoremove libfsverity-dev

Remove libfsverity-dev Configurations and Data

To remove libfsverity-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libfsverity-dev

Remove libfsverity-dev configuration, data, and all of its dependencies

We can use the following command to remove libfsverity-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libfsverity-dev

Dependencies

libfsverity-dev have the following dependencies:

References

Summary

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