How To Install yad on Debian 12

Learn how to install yad on Debian 12 with this tutorial. yad is tool for creating graphical dialogs from shell scripts

Introduction

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

What is yad

yad is:

Yad allows you to display GTK+ dialog boxes from command line or shell scripts. It is similar to Zenity but with more dialog types and options.

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

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

sudo apt-get update

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

sudo apt-get -y install yad

Install yad Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install yad

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

sudo aptitude -y install yad

How To Uninstall yad on Debian 12

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

sudo apt-get remove yad

Uninstall yad And Its Dependencies

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

sudo apt-get -y autoremove yad

Remove yad Configurations and Data

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

sudo apt-get -y purge yad

Remove yad configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge yad

Dependencies

yad have the following dependencies:

References

Summary

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