How to Uninstall or Install etcd-discovery on Ubuntu 22.04

Updated: October 20, 2022

This code powers the public service at https://discovery.etcd.io. This package provides a standalone initial discovery URL if contacting the https://discovery.etcd.io is not possible in your deployment (for example if your server doesn’t have internet connectivity). In this guide, I will show you ways to install etcd-discovery Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 is needed for etcd-discovery to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install etcd-discovery on Ubuntu 22.04

Install etcd-discovery Ubuntu 22.04

etcd-discovery is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install etcd-discovery using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to install etcd-discovery on your Ubuntu.

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. You can now install etcd-discovery Ubuntu by executing this command in the terminal.

sudo apt-get -y install etcd-discovery

Install etcd-discovery using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

Then, you can now install etcd-discovery by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install etcd-discovery Ubuntu by executing this command in the terminal.

sudo aptitude install etcd-discovery

Uninstall etcd-discovery 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 etcd-discovery.

This command can be used to uninstall etcd-discovery from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove etcd-discovery

To uninstall etcd-discovery and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge etcd-discovery

Summary

In this tutorial, I showed you ways to install etcd-discovery on Ubuntu 22.04 and ways to uninstall etcd-discovery too. Please contact me if you require any assistance. I’d be delighted to respond.