How To Install uiautomatorviewer on Ubuntu 18.04
Introduction
In this tutorial we learn how to install uiautomatorviewer
on Ubuntu 18.04.
What is uiautomatorviewer
uiautomatorviewer is:
uiautomatorviewer is a graphical tool for inscpeting the UI of an Android application.
This package provides the standalone launcher of uiautomatorviewer.
There are three methods to install uiautomatorviewer
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 uiautomatorviewer Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install uiautomatorviewer
using apt-get
by running the following command:
sudo apt-get -y install uiautomatorviewer
Install uiautomatorviewer Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install uiautomatorviewer
using apt
by running the following command:
sudo apt -y install uiautomatorviewer
Install uiautomatorviewer 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 uiautomatorviewer
using aptitude
by running the following command:
sudo aptitude -y install uiautomatorviewer
How To Uninstall uiautomatorviewer on Ubuntu 18.04
To uninstall only the uiautomatorviewer
package we can use the following command:
sudo apt-get remove uiautomatorviewer
Uninstall uiautomatorviewer And Its Dependencies
To uninstall uiautomatorviewer
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove uiautomatorviewer
Remove uiautomatorviewer Configurations and Data
To remove uiautomatorviewer
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge uiautomatorviewer
Remove uiautomatorviewer configuration, data, and all of its dependencies
We can use the following command to remove uiautomatorviewer
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge uiautomatorviewer
References
Summary
In this tutorial we learn how to install uiautomatorviewer
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.