How To Install android-boringssl on Debian 12

Learn how to install android-boringssl on Debian 12 with this tutorial. android-boringssl is Googles internal fork of OpenSSL for the Android SDK - tool

Introduction

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

What is android-boringssl

android-boringssl is:

The Android SDK builds against a static version of BoringSSL, Google’s internal fork of OpenSSL. This package should never be used for anything but Android SDK packages that already depend on it.

BoringSSL arose because Google used OpenSSL for many years in various ways and, over time, built up a large number of patches that were maintained while tracking upstream OpenSSL. As Google??s product portfolio became more complex, more copies of OpenSSL sprung up and the effort involved in maintaining all these patches in multiple places was growing steadily.

This is the Android AOSP fork of BoringSSL which is designed to be used by Android and its SDK. BoringSSL is only ever statically linked into apps, and pinned to a commit version. Upstream has no official releases of BoringSSL on its own, so it must be included separately for each project that uses it.

This package contains the boringssl command line tool.

There are three methods to install android-boringssl 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 android-boringssl Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install android-boringssl

Install android-boringssl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install android-boringssl

Install android-boringssl 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 android-boringssl using aptitude by running the following command:

sudo aptitude -y install android-boringssl

How To Uninstall android-boringssl on Debian 12

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

sudo apt-get remove android-boringssl

Uninstall android-boringssl And Its Dependencies

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

sudo apt-get -y autoremove android-boringssl

Remove android-boringssl Configurations and Data

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

sudo apt-get -y purge android-boringssl

Remove android-boringssl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge android-boringssl

Dependencies

android-boringssl have the following dependencies:

References

Summary

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