How To Install dex2jar on Kali Linux
Introduction
In this tutorial we learn how to install dex2jar
on Kali Linux.
What is dex2jar
dex2jar is:
dex2jar contains 4 compments:
dex-reader is designed to read the Dalvik Executable (.dex/.odex) format. It has a light weight API similar with ASM. An example here dex-translator is designed to do the convert job. It reads the dex instruction to dex-ir format, after some optimize, convert to ASM format. dex-ir used by dex-translator, is designed to represent the dex instruction dex-tools tools to work with .class files.
There are three methods to install dex2jar
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dex2jar Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dex2jar
using apt-get
by running the following command:
sudo apt-get -y install dex2jar
Install dex2jar Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dex2jar
using apt
by running the following command:
sudo apt -y install dex2jar
Install dex2jar Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install dex2jar
using aptitude
by running the following command:
sudo aptitude -y install dex2jar
How To Uninstall dex2jar on Kali Linux
To uninstall only the dex2jar
package we can use the following command:
sudo apt-get remove dex2jar
Uninstall dex2jar And Its Dependencies
To uninstall dex2jar
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove dex2jar
Remove dex2jar Configurations and Data
To remove dex2jar
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge dex2jar
Remove dex2jar configuration, data, and all of its dependencies
We can use the following command to remove dex2jar
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dex2jar
Dependencies
dex2jar have the following dependencies:
References
Summary
In this tutorial we learn how to install dex2jar
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.