How To Install android-tools on Fedora 36

In this tutorial we learn how to install android-tools in Fedora 36. android-tools is Android platform tools(adb, fastboot)

Introduction

In this tutorial we learn how to install android-tools on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install android-tools.

Install android-tools on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install android-tools

Install android-tools on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install android-tools

How To Uninstall android-tools on Fedora 36

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

sudo dnf remove android-tools

android-tools Package Contents on Fedora 36

/usr/bin/adb
/usr/bin/append2simg
/usr/bin/fastboot
/usr/bin/img2simg
/usr/bin/mke2fs.android
/usr/bin/simg2img
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/c734ae03a78a1a1b377c7de99781c7893b3f28
/usr/lib/.build-id/26
/usr/lib/.build-id/26/e0ef5edc4dec3e2ca3a8c2dd1fe83f74eed977
/usr/lib/.build-id/41
/usr/lib/.build-id/41/a3fb36dd27ed9ff6306c65fd4689824d8a77d1
/usr/lib/.build-id/71
/usr/lib/.build-id/71/01966369041f3909c2ef6510cdebb66bd7b409
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/06581c85ef2c086b06db2f2235269141a0dd1e
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/e61aeb9757447f450b27fcc520108fbe640650
/usr/lib/systemd/system/adb.service
/usr/share/android-tools
/usr/share/android-tools/completions/adb
/usr/share/android-tools/completions/fastboot
/usr/share/bash-completion/completions/adb
/usr/share/bash-completion/completions/fastboot
/usr/share/doc/android-tools
/usr/share/doc/android-tools/51-android.rules
/var/lib/adb

References

Summary

In this tutorial we learn how to install android-tools on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).