How To Install passt on Debian 12

Learn how to install passt on Debian 12 with this tutorial. passt is user-mode networking daemons for virtual machines and namespaces

Introduction

In this tutorial we learn how to install passt on Debian 12.

What is passt

passt is:

passt implements a translation layer between a Layer-2 network interface and native Layer-4 sockets (TCP, UDP, ICMP/ICMPv6 echo) on a host. It doesn’t require any capabilities or privileges, and it can be used as a simple replacement for Slirp.

pasta (same binary as passt, different command) offers equivalent functionality, for network namespaces: traffic is forwarded using a tap interface inside the namespace, without the need to create further interfaces on the host, hence not requiring any capabilities or privileges.

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

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

sudo apt-get update

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

sudo apt-get -y install passt

Install passt Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install passt using apt by running the following command:

sudo apt -y install passt

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

sudo aptitude -y install passt

How To Uninstall passt on Debian 12

To uninstall only the passt package we can use the following command:

sudo apt-get remove passt

Uninstall passt And Its Dependencies

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

sudo apt-get -y autoremove passt

Remove passt Configurations and Data

To remove passt configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge passt

Remove passt configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge passt

Dependencies

passt have the following dependencies:

References

Summary

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