How To Install ddms on Ubuntu 18.04

In this tutorial we learn how to install ddms on Ubuntu 18.04. ddms is Dalvik Debug Monitor Server

Introduction

In this tutorial we learn how to install ddms on Ubuntu 18.04.

What is ddms

ddms is:

Android Studio includes a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information, incoming call and SMS spoofing, location data spoofing, and more.

See also: https://developer.android.com/studio/profile/ddms.html

This package provides the standalone launcher of DDMS. However it is deprecated, please use Android Device Monitor instead.

There are three methods to install ddms on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ddms Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ddms using apt-get by running the following command:

sudo apt-get -y install ddms

Install ddms Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ddms using apt by running the following command:

sudo apt -y install ddms

Install ddms 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 ddms using aptitude by running the following command:

sudo aptitude -y install ddms

How To Uninstall ddms on Ubuntu 18.04

To uninstall only the ddms package we can use the following command:

sudo apt-get remove ddms

Uninstall ddms And Its Dependencies

To uninstall ddms and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ddms

Remove ddms Configurations and Data

To remove ddms configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ddms

Remove ddms configuration, data, and all of its dependencies

We can use the following command to remove ddms configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ddms

References

Summary

In this tutorial we learn how to install ddms package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.