← All commands
Topic hub Package Management
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
Debian/Ubuntu apt + flatpak
flatpak install flathub APP_ID
Fedora dnf + flatpak
flatpak install flathub APP_ID
Arch pacman + flatpak
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 optionUse
flatpak search firefoxFind an application ID
flatpak install flathub org.mozilla.firefoxInstall from Flathub
flatpak run org.mozilla.firefoxLaunch 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.

DistributionPackage manager / baseEquivalent commandDifference 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

Related Package Management commands