Windows
Linux
Package Management
Windows Add-AppxPackage equivalent in Linux
Installs a desktop application from a Flatpak repository such as Flathub.
Windows
→
Add-AppxPackage
Linux equivalents
flatpak install flathub APP_ID
flatpak install flathub APP_ID
flatpak install flathub APP_ID
Overview
What this command does
Installs a desktop application from a Flatpak repository such as Flathub.
Migration tip: Flatpak applications use reverse-domain IDs such as
org.mozilla.firefox. Search first when you do not know the exact ID.Practical tasks
Common use cases
Install a sandboxed desktop application
Installs a desktop application from a Flatpak repository such as Flathub.
flatpak search firefox
Find an application ID
flatpak install flathub org.mozilla.firefox
Install from Flathub
flatpak run org.mozilla.firefox
Launch the application
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
flatpak search firefox
flatpak install flathub org.mozilla.firefox
flatpak run org.mozilla.firefox
Walkthrough
Examples with explanations
flatpak search firefox # search Flatpak applications
flatpak install flathub org.mozilla.firefox # install Firefox
flatpak run org.mozilla.firefox # run the installed app
Reference
Common options and variations
| Command or option | Use |
|---|---|
flatpak search firefox | Find an application ID |
flatpak install flathub org.mozilla.firefox | Install from Flathub |
flatpak run org.mozilla.firefox | Launch the application |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
This workflow changes mostly by Linux distribution package manager: Debian/Ubuntu uses apt, Fedora uses dnf, and Arch uses pacman.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | apt + flatpak | flatpak install flathub APP_ID |
Installs apps from Flathub after Flatpak is installed. Install Flatpak with: sudo apt install flatpak. |
| Fedora | dnf + flatpak | flatpak install flathub APP_ID |
Installs apps from Flathub after Flatpak is installed. Fedora usually has strong Flatpak integration. |
| Arch | pacman + flatpak | flatpak install flathub APP_ID |
Installs apps from Flathub after Flatpak is installed. Install Flatpak with: sudo pacman -S flatpak. |
Keep learning