← All commands
Topic hub Package Management
Windows Linux Package Management Expanded guide

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

On Windows, "Add-AppxPackage" is used to install a sandboxed desktop application. On Linux, the closest practical mapping shown here is "flatpak install flathub APP_ID". Installs a desktop application from a Flatpak repository such as Flathub. This reference is grouped under Package Management.

Migration tip: Flatpak applications use reverse-domain IDs such as <code>org.mozilla.firefox</code>. Search first when you do not know the exact ID.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows Add-AppxPackage maps to flatpak install flathub APP_ID for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

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

The command "flatpak install flathub APP_ID" is the same in all three rows, while package or base details differ: Debian/Ubuntu uses apt + flatpak; Fedora uses dnf + flatpak; Arch uses pacman + flatpak.

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