How to Install FireJail on Linux AlmaLinux

Sometimes you may want to use applications that have not been well tested in different environments, yet you must use them.
In such cases, it is normal to be concerned about the security of your system. One thing that can be done in Linux is to use applications in a sandbox.

Sandboxing” is the ability to run application in a limited environment. That way the application is provided a tighten amount of resources, needed to run.
Thanks to application called Firejail, you can safely run untrusted applications in Linux.

Firejail is a SUID (Set Owner User ID) application that decrease the exposure of security breaches by limiting the running environment of untrusted programs using Linux namespaces and seccomp-bpf.

Update Your System

Before installing FireJail on Linux (AlmaLinux), you will need to update your system’s package repositories by using the following commands to ensure you’re getting the latest versions of packages:

sudo dnf update
sudo dnf upgrade

Installing Extra Packages for Enterprise Linux (EPEL)

Extra Packages for Enterprise Linux (EPEL) is an initiative within the Fedora Project to provide high quality additional packages for Alma Linux and Red Hat Enterprise Linux (RHEL).

EPEL packages are usually based on their Fedora counterparts and should not conflict with or replace packages in the base Enterprise Linux distributions.
EPEL uses much of the same infrastructure as Fedora, including buildsystem, Bugzilla instance, updates manager, mirror manager and more.

sudo dnf install epel-release

Install FireJail on Linux (AlmaLinux) with the dnf command

Then, you can use dnf package manager to install the most recent version of FireJail from the EPEL repository:

sudo dnf install firejail

Check FireJail Version

Next, use the following commands to check the FireJail version:

firejail --version

And, yes, that all, now is ready to use

We can now test the installed FireJail with FireFox as an example. The private option will create a temporary environment, and FireFox should open in the manner of your freshly installed FireFox once you run the following command :

firejail --private firefox

To see a list of all the apps running in a jail, execute the following command:

firejail --list

How to Uninstall FireJail on AlmaLinux

You can use the following command to uninstall FireJail from your AlmaLinux:

sudo dnf autoremove firejail

Clean up after removing FireJail package :

sudo rm -rf /etc/firejail
sudo rm -rf /usr/lib64/firejail
sudo rm -rf /usr/share/licenses/firejail
sudo rm -rf /usr/share/doc/firejail