How To Install android-tools on CentOS 7

In this tutorial we learn how to install android-tools on CentOS 7. android-tools is Android platform tools(adb, fastboot)

Introduction

In this tutorial we learn how to install android-tools on CentOS 7.

What is android-tools

The Android Debug Bridge (ADB) is used to - keep track of all Android devices and emulators instances connected to or running on a given host developer machine - implement various control commands (e.g. “adb shell”, “adb pull”, etc.) for the benefit of clients (command-line users, or helper programs like DDMS). These commands are what is called a ‘service’ in ADB. Fastboot is used to manipulate the flash partitions of the Android phone. It can also boot the phone using a kernel image or root filesystem image which reside on the host machine rather than in the phone flash. In order to use it, it is important to understand the flash partition layout for the phone. The fastboot program works in conjunction with firmware on the phone to read and write the flash partitions. It needs the same USB device setup between the host and the target phone as adb.

We can use yum or dnf to install android-tools on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install android-tools.

Install android-tools on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install android-tools using yum by running the following command:

sudo yum -y install android-tools

Install android-tools on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install android-tools using dnf by running the following command:

sudo dnf -y install android-tools

How To Uninstall android-tools on CentOS 7

To uninstall only the android-tools package we can use the following command:

sudo dnf remove android-tools

References

Summary

In this tutorial we learn how to install android-tools on CentOS 7 using yum and dnf.