How To Install flatpak on CentOS 8

flatpak is Application deployment framework for desktop apps

Introduction

In this tutorial we learn how to install flatpak on CentOS 8.

What is flatpak

flatpak is a system for building, distributing and running sandboxed desktop applications on Linux. See https more information.

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

Install flatpak on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install flatpak

Install flatpak on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install flatpak

How To Uninstall flatpak on CentOS 8

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

sudo dnf remove flatpak

flatpak Package Contents on CentOS 8

/etc/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
/etc/flatpak/remotes.d
/etc/profile.d/flatpak.sh
/usr/bin/flatpak
/usr/bin/flatpak-bisect
/usr/bin/flatpak-coredumpctl
/usr/lib/.build-id
/usr/lib/.build-id/30
/usr/lib/.build-id/30/86b1059b83cd8c71a7f91f10adb4e2d2150511
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/171bb8f4a3267c3b4f4f8279fe291ba337cfa2
/usr/lib/.build-id/69
/usr/lib/.build-id/69/31f2f2ab23623f1c79ab1409afb892ba1a0650
/usr/lib/.build-id/85
/usr/lib/.build-id/85/cbb0d43f97764dca24a783d933895db0d3c659
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/2b76e10311763d58d6e1687b9ae8418e4c05fc
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/86195c1b9de372acd7cee5704ac37181331de7
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/876303d0697091da57c3fc8caaaeac74ef1a31
/usr/lib/systemd/system/flatpak-system-helper.service
/usr/lib/systemd/user-environment-generators/60-flatpak
/usr/lib/systemd/user/flatpak-oci-authenticator.service
/usr/lib/systemd/user/flatpak-portal.service
/usr/lib/sysusers.d/flatpak.conf
/usr/libexec/flatpak-dbus-proxy
/usr/libexec/flatpak-oci-authenticator
/usr/libexec/flatpak-portal
/usr/libexec/flatpak-system-helper
/usr/libexec/flatpak-validate-icon
/usr/libexec/revokefs-fuse
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/flatpak
/usr/share/dbus-1/interfaces/org.freedesktop.Flatpak.Authenticator.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml
/usr/share/dbus-1/services/org.flatpak.Authenticator.Oci.service
/usr/share/dbus-1/services/org.freedesktop.portal.Flatpak.service
/usr/share/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service
/usr/share/doc/flatpak
/usr/share/doc/flatpak/NEWS
/usr/share/doc/flatpak/README.md
/usr/share/doc/flatpak/docbook.css
/usr/share/doc/flatpak/flatpak-docs.html
/usr/share/fish
/usr/share/fish/vendor_completions.d
/usr/share/fish/vendor_completions.d/flatpak.fish
/usr/share/flatpak
/usr/share/flatpak/triggers
/usr/share/flatpak/triggers/desktop-database.trigger
/usr/share/flatpak/triggers/gtk-icon-cache.trigger
/usr/share/flatpak/triggers/mime-database.trigger
/usr/share/licenses/flatpak
/usr/share/licenses/flatpak/COPYING
/usr/share/locale/cs/LC_MESSAGES/flatpak.mo
/usr/share/locale/da/LC_MESSAGES/flatpak.mo
/usr/share/locale/de/LC_MESSAGES/flatpak.mo
/usr/share/locale/en_GB/LC_MESSAGES/flatpak.mo
/usr/share/locale/es/LC_MESSAGES/flatpak.mo
/usr/share/locale/gl/LC_MESSAGES/flatpak.mo
/usr/share/locale/hr/LC_MESSAGES/flatpak.mo
/usr/share/locale/hu/LC_MESSAGES/flatpak.mo
/usr/share/locale/id/LC_MESSAGES/flatpak.mo
/usr/share/locale/pl/LC_MESSAGES/flatpak.mo
/usr/share/locale/pt_BR/LC_MESSAGES/flatpak.mo
/usr/share/locale/ro/LC_MESSAGES/flatpak.mo
/usr/share/locale/ru/LC_MESSAGES/flatpak.mo
/usr/share/locale/sk/LC_MESSAGES/flatpak.mo
/usr/share/locale/sv/LC_MESSAGES/flatpak.mo
/usr/share/locale/tr/LC_MESSAGES/flatpak.mo
/usr/share/locale/uk/LC_MESSAGES/flatpak.mo
/usr/share/locale/zh_TW/LC_MESSAGES/flatpak.mo
/usr/share/man/man1/flatpak-build-bundle.1.gz
/usr/share/man/man1/flatpak-build-commit-from.1.gz
/usr/share/man/man1/flatpak-build-export.1.gz
/usr/share/man/man1/flatpak-build-finish.1.gz
/usr/share/man/man1/flatpak-build-import-bundle.1.gz
/usr/share/man/man1/flatpak-build-init.1.gz
/usr/share/man/man1/flatpak-build-sign.1.gz
/usr/share/man/man1/flatpak-build-update-repo.1.gz
/usr/share/man/man1/flatpak-build.1.gz
/usr/share/man/man1/flatpak-config.1.gz
/usr/share/man/man1/flatpak-create-usb.1.gz
/usr/share/man/man1/flatpak-document-export.1.gz
/usr/share/man/man1/flatpak-document-info.1.gz
/usr/share/man/man1/flatpak-document-unexport.1.gz
/usr/share/man/man1/flatpak-documents.1.gz
/usr/share/man/man1/flatpak-enter.1.gz
/usr/share/man/man1/flatpak-history.1.gz
/usr/share/man/man1/flatpak-info.1.gz
/usr/share/man/man1/flatpak-install.1.gz
/usr/share/man/man1/flatpak-kill.1.gz
/usr/share/man/man1/flatpak-list.1.gz
/usr/share/man/man1/flatpak-make-current.1.gz
/usr/share/man/man1/flatpak-mask.1.gz
/usr/share/man/man1/flatpak-override.1.gz
/usr/share/man/man1/flatpak-permission-remove.1.gz
/usr/share/man/man1/flatpak-permission-reset.1.gz
/usr/share/man/man1/flatpak-permission-set.1.gz
/usr/share/man/man1/flatpak-permission-show.1.gz
/usr/share/man/man1/flatpak-permissions.1.gz
/usr/share/man/man1/flatpak-ps.1.gz
/usr/share/man/man1/flatpak-remote-add.1.gz
/usr/share/man/man1/flatpak-remote-delete.1.gz
/usr/share/man/man1/flatpak-remote-info.1.gz
/usr/share/man/man1/flatpak-remote-ls.1.gz
/usr/share/man/man1/flatpak-remote-modify.1.gz
/usr/share/man/man1/flatpak-remotes.1.gz
/usr/share/man/man1/flatpak-repair.1.gz
/usr/share/man/man1/flatpak-repo.1.gz
/usr/share/man/man1/flatpak-run.1.gz
/usr/share/man/man1/flatpak-search.1.gz
/usr/share/man/man1/flatpak-spawn.1.gz
/usr/share/man/man1/flatpak-uninstall.1.gz
/usr/share/man/man1/flatpak-update.1.gz
/usr/share/man/man1/flatpak.1.gz
/usr/share/man/man5/flatpak-flatpakref.5.gz
/usr/share/man/man5/flatpak-flatpakrepo.5.gz
/usr/share/man/man5/flatpak-installation.5.gz
/usr/share/man/man5/flatpak-metadata.5.gz
/usr/share/man/man5/flatpak-remote.5.gz
/usr/share/polkit-1/actions/org.freedesktop.Flatpak.policy
/usr/share/polkit-1/rules.d/org.freedesktop.Flatpak.rules
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_flatpak
/var/lib/flatpak

References

Summary

In this tutorial we learn how to install flatpak on CentOS 8 using yum and dnf.