Ways to Install and Uninstall adb Ubuntu 22.04

Updated: August 29, 2022

A versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. I will show you how to install adb on Ubuntu 22.04 in this guide.

Software Requirement

  • OS: adb needs Ubuntu 22.04 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install adb on Ubuntu 22.04

Install adb Ubuntu 22.04

adb 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 that you think is easy and you can follow.

Install adb using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these instructions to install adb on your Ubuntu 22.04.

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

sudo apt update

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

sudo apt-get -y install adb

Install adb using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing it, you can now install adb, just following these steps:

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. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

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

sudo aptitude -y install adb

Uninstall adb on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

If you installed adb using APT or Aptitude, you could uninstall adb on Ubuntu by executing this command

sudo apt remove --auto-remove adb

You can also execute this command if you want to uninstall adb and remove its data and dependencies:

sudo apt autoremove --purge adb

Ending

In this guide, I showed you ways to install adb on Ubuntu 22.04 and ways to uninstall adb too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.