Introduction
In this tutorial we learn how to install android-libboringssl-dev
on Ubuntu 22.04.
What is android-libboringssl-dev
android-libboringssl-dev 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 development files.
There are three methods to install android-libboringssl-dev
on Ubuntu 22.04. 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-libboringssl-dev 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-libboringssl-dev
using apt-get
by running the following command:
sudo apt-get -y install android-libboringssl-dev
Install android-libboringssl-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install android-libboringssl-dev
using apt
by running the following command:
sudo apt -y install android-libboringssl-dev
Install android-libboringssl-dev 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install android-libboringssl-dev
using aptitude
by running the following command:
sudo aptitude -y install android-libboringssl-dev
How To Uninstall android-libboringssl-dev on Ubuntu 22.04
To uninstall only the android-libboringssl-dev
package we can use the following command:
sudo apt-get remove android-libboringssl-dev
Uninstall android-libboringssl-dev And Its Dependencies
To uninstall android-libboringssl-dev
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove android-libboringssl-dev
Remove android-libboringssl-dev Configurations and Data
To remove android-libboringssl-dev
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge android-libboringssl-dev
Remove android-libboringssl-dev configuration, data, and all of its dependencies
We can use the following command to remove android-libboringssl-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge android-libboringssl-dev
References
Summary
In this tutorial we learn how to install android-libboringssl-dev
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.