How to Uninstall and Install adcli on Ubuntu 22.04

Updated: August 31, 2022

This tool allows the administrator to join the local machine to an Active Directory (AD) domain. It’s taking care of creating the computer account on the domain and adjusting the kerberos (keytab) configuration. In this guide, I will show you ways to install adcli Ubuntu 22.04.

Requirements

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install adcli on Ubuntu 22.04

Install adcli Ubuntu 22.04

adcli 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 adcli using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get adcli on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install adcli Ubuntu by executing this command in the terminal.

sudo apt -y install adcli

Install adcli using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After that, you can now install adcli, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install adcli Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude install adcli

Uninstall adcli on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a adcli, can be easily uninstalled by anyone.

If you installed adcli using APT or Aptitude, you could uninstall adcli on Ubuntu by following this step:

sudo apt remove --auto-remove adcli

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

sudo apt autoremove --purge adcli

Summary

In this guide, I showed you ways to install adcli on Ubuntu 22.04 and ways to uninstall adcli too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.