flatpak Cheatsheet
#
flatpak is a software utility for software deployment, application virtualization, and package management. It enables users to install, update, and manage applications across different Linux distributions in a consistent manner.
Basic Commands
#
Command/Option | Example | Description |
---|
flatpak install | flatpak install flathub com.example.app | Install an application from a remote repository |
flatpak uninstall | flatpak uninstall com.example.app | Remove an installed application |
flatpak update | flatpak update | Update installed applications |
flatpak list | flatpak list | List installed applications |
flatpak info | flatpak info com.example.app | Display information about an application |
flatpak search | flatpak search app-name | Search for applications in remote repositories |
flatpak run | flatpak run com.example.app | Run an installed application |
flatpak remote-add | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | Add a new remote repository |
flatpak remote-remove | flatpak remote-remove flathub | Remove a remote repository |
flatpak remote-ls | flatpak remote-ls | List available remote repositories |
Application Management
#
Command/Option | Example | Description |
---|
flatpak override | flatpak override --user --nofilesystem=host com.example.app | Override permissions for an application |
flatpak permissions | flatpak permissions com.example.app | List permissions for an application |
flatpak repair | flatpak repair | Repair flatpak installations |
Advanced Commands
#
Command/Option | Example | Description |
---|
flatpak build | flatpak build /path/to/app | Build a Flatpak application from a directory |
flatpak-builder | flatpak-builder --repo=myrepo /path/to/app | Build and optionally create a Flatpak repository |
flatpak build-export | flatpak build-export myrepo /path/to/app | Export a built Flatpak application to a repository |
Environment Management
#
Command/Option | Example | Description |
---|
flatpak install --user | flatpak install --user flathub com.example.app | Install an application for the current user only |
flatpak uninstall --user | flatpak uninstall --user com.example.app | Uninstall an application for the current user only |
This cheatsheet covers essential flatpak
commands for managing applications, repositories, and permissions in the Flatpak ecosystem.