How To Install bubblewrap on Rocky Linux 8

In this tutorial we learn how to install bubblewrap on Rocky Linux 8. bubblewrap is Core execution tool for unprivileged containers

Introduction

In this tutorial we learn how to install bubblewrap on Rocky Linux 8.

What is bubblewrap

Bubblewrap (/usr/bin/bwrap) is a core execution engine for unprivileged containers that works as a setuid binary on kernels without user namespaces.

We can use yum or dnf to install bubblewrap on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install bubblewrap.

Install bubblewrap on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install bubblewrap

Install bubblewrap on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install bubblewrap using yum by running the following command:

sudo yum -y install bubblewrap

How To Uninstall bubblewrap on Rocky Linux 8

To uninstall only the bubblewrap package we can use the following command:

sudo dnf remove bubblewrap

bubblewrap Package Contents on Rocky Linux 8

/usr/bin/bwrap
/usr/lib/.build-id
/usr/lib/.build-id/74
/usr/lib/.build-id/74/405eaf3a764a16a8c13e95e3c0f2d583bbe41f
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/bwrap
/usr/share/licenses/bubblewrap
/usr/share/licenses/bubblewrap/COPYING
/usr/share/man/man1/bwrap.1.gz

References

Summary

In this tutorial we learn how to install bubblewrap on Rocky Linux 8 using yum and dnf.