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. In this tutorial, I will show you how to install wait-for-it on Ubuntu 22.04.
Prerequisites to install
- OS: Ubuntu 22.04 is needed for wait-for-it to work
- Privileges: Ascertain that you are able to execute sudo commands.
Install wait-for-it Ubuntu 22.04
wait-for-it is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.
Install wait-for-it using APT
This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install wait-for-it on your Ubuntu 22.04.
Step 1: Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:
Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install wait-for-it Ubuntu by executing this command in the terminal.
Install wait-for-it using Aptitude
Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.
After installing aptitude, you can now install wait-for-it by following these steps:
Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:
Step 2: Start the package installation on Ubuntu 22.04. You can now install wait-for-it Ubuntu by executing this command in the terminal.
Uninstall wait-for-it on Ubuntu 22.04
Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a wait-for-it.
If you installed wait-for-it using APT or Aptitude, you could uninstall wait-for-it on Ubuntu by following this step:
If you want to uninstall wait-for-it and remove its data and dependencies, you can also run the following command:
In this tutorial, I showed you ways to install wait-for-it on Ubuntu 22.04 and some ways to uninstall wait-for-it too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.