How To Install wait-for-it on Debian 12

Learn how to install wait-for-it on Debian 12 with this tutorial. wait-for-it is script that will wait on the availability of a host and TCP port

Introduction

In this tutorial we learn how to install wait-for-it on Debian 12.

What is wait-for-it

wait-for-it is:

wait-for-it is a pure bash script that will wait on the availability of a host and TCP port. It is useful for synchronizing the spin-up of interdependent services, such as linked docker containers. Since it is a pure bash script, it does not have any external dependencies.

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

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

sudo apt-get update

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

sudo apt-get -y install wait-for-it

Install wait-for-it Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install wait-for-it using apt by running the following command:

sudo apt -y install wait-for-it

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

sudo aptitude -y install wait-for-it

How To Uninstall wait-for-it on Debian 12

To uninstall only the wait-for-it package we can use the following command:

sudo apt-get remove wait-for-it

Uninstall wait-for-it And Its Dependencies

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

sudo apt-get -y autoremove wait-for-it

Remove wait-for-it Configurations and Data

To remove wait-for-it configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge wait-for-it

Remove wait-for-it configuration, data, and all of its dependencies

We can use the following command to remove wait-for-it configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge wait-for-it

Dependencies

wait-for-it have the following dependencies:

References

Summary

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