So with RHEL 10, there is a new solution to install software,
and that's Flatpak.
Flatpak uses a container-like approach to install software.
Their applications are installed from images that
contain all of the dependencies.
This makes your Flatpak applications a bit bigger,
by the way.
And some dependencies are common to many applications.
Flatpak runtimes are provided as images
that contain generic dependencies,
so that you only have to install them once.
So working with runtime makes that these dependencies
don't have to be installed multiple times.
Flatpak uses remote repositories to install packages.
And there is the common Flatpak repositories.
Otherwise, Red Hat has its own remote repository as well.
But if you don't want to use them,
feel free to register with flathub.org,
which is the common repository that's
available on all distributors that are using Flatpak.
If the Flatpak installation isn't installed yet,
which is common on server installations,
you can install it manually using dnf install minus y
flatpak.
And after installation, you can use Flatpak minus minus version
to verify the installation.
To get access to the default Flatpak repository,
you must authenticate.
If it's Red Hat, then you would use pop-in login
or registry.redhat.io.
And you can make the login persistent for the current user
using the following command.
I'm not going to read it.
Just type the command, and your login will be persistent.
After logging in, you can use the following
to allow all users on the system to use the login credentials
that were provided.
So you would use the auth.json file
and copy it into etc.flatpak-oci-auth.json.
Don't forget to set the permissions such
that everybody can read it.
And next, you can use the flatpak-remotes command
to print a list of remote repositories
that are available.
To add a remote, you can use a command
like flatpak-remote-add.
Minus minus, if not exists, for example,
fedora-oci-plus-https://registry.fedoraproject.org.
And to list applications available
in the remote repository, you can use flatpak-remote-ls
minus minus app.