How To Install android-platform-tools-base on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 399 words
Introduction
In this tutorial we learn how to install android-platform-tools-base
on Ubuntu.
What is android-platform-tools-base
android-platform-tools-base is:
This package includes various tools for developing and building Android applications, e.g.
Draw 9-patch: Allows you to easily create a NinePatch graphic using a WYSIWYG editor. It also previews stretched versions of the image, and highlights the area in which content is allowed.
screenshot2: Takes a screenshot from a remote Android device.
default-jre or other non-headless JRE needs to be installed in order to run “draw9patch”. However draw9patch fails to run due to bug #798794.
There are three methods to install android-platform-tools-base
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install android-platform-tools-base Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install android-platform-tools-base
using apt-get
by running the following command:
sudo apt-get -y install android-platform-tools-base
Install android-platform-tools-base Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install android-platform-tools-base
using apt
by running the following command:
sudo apt -y install android-platform-tools-base
Install android-platform-tools-base 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install android-platform-tools-base
using aptitude
by running the following command:
sudo aptitude -y install android-platform-tools-base
How To Uninstall android-platform-tools-base on Ubuntu
To uninstall only the android-platform-tools-base
package we can use the following command:
sudo apt-get remove android-platform-tools-base
Uninstall android-platform-tools-base And Its Dependencies
To uninstall android-platform-tools-base
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove android-platform-tools-base
Remove android-platform-tools-base Configurations and Data
To remove android-platform-tools-base
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge android-platform-tools-base
Remove android-platform-tools-base configuration, data, and all of its dependencies
We can use the following command to remove android-platform-tools-base
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge android-platform-tools-base
Dependencies
android-platform-tools-base have the following dependencies:
References
Summary
In this tutorial we learn how to install android-platform-tools-base
package on Ubuntu using different package management tools: apt, apt-get and aptitude.