How To Install google-android-licenses on Debian 12

Learn how to install google-android-licenses on Debian 12 with this tutorial. google-android-licenses is Googles SDK licences subfolder with licenses SHA1 sums

Introduction

In this tutorial we learn how to install google-android-licenses on Debian 12.

What is google-android-licenses

google-android-licenses is:

This package hols the “licenses” folder of the Google Android SDK folder structure.

The files in that folder contain the sha1sums of the licences that are in the package.xml files of each SDK Component.

They are used to check that license has been accepted by the user.

There are three methods to install google-android-licenses on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install google-android-licenses Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install google-android-licenses

Install google-android-licenses Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install google-android-licenses using apt by running the following command:

sudo apt -y install google-android-licenses

Install google-android-licenses 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install google-android-licenses using aptitude by running the following command:

sudo aptitude -y install google-android-licenses

How To Uninstall google-android-licenses on Debian 12

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

sudo apt-get remove google-android-licenses

Uninstall google-android-licenses And Its Dependencies

To uninstall google-android-licenses and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove google-android-licenses

Remove google-android-licenses Configurations and Data

To remove google-android-licenses configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge google-android-licenses

Remove google-android-licenses configuration, data, and all of its dependencies

We can use the following command to remove google-android-licenses configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge google-android-licenses

Dependencies

google-android-licenses have the following dependencies:

References

Summary

In this tutorial we learn how to install google-android-licenses package on Debian 12 using different package management tools: apt, apt-get and aptitude.