Windows winget export equivalent in Linux
Saves a list of manually installed packages.
winget export
apt-mark showmanual > packages.txt
dnf repoquery --userinstalled > packages.txt
pacman -Qqe > packages.txt
Overview
What this command does
On Windows, "winget export" is used to export installed package list. On Linux, the closest practical mapping shown here is "apt-mark showmanual > packages.txt". Saves a list of manually installed packages. This reference is grouped under Package Management → Packages.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows winget export maps to apt-mark for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Distribution details matter
The Debian/Ubuntu, Fedora and Arch rows are not identical. Use the row for your distribution instead of changing only the package-manager name in an example.
For the broader concept behind this mapping, read Linux package management.
Practical tasks
Common use cases
Export installed package list
Saves a list of manually installed packages.
apt-mark showmanual > packages.txt
Export installed package list
apt-mark --help
Show command help when supported
man apt-mark
Open the manual page when installed
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
apt-mark showmanual > packages.txt
Walkthrough
Examples with explanations
# Windows equivalent: winget export
apt-mark showmanual > packages.txt
Reference
Common options and variations
| Command or option | Use |
|---|---|
apt-mark showmanual > packages.txt | Export installed package list |
apt-mark --help | Show command help when supported |
man apt-mark | Open the manual page when installed |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
The equivalent is distribution-specific for this task: Debian/Ubuntu uses "apt-mark showmanual > packages.txt"; Fedora uses "dnf repoquery --userinstalled > packages.txt"; Arch uses "pacman -Qqe > packages.txt".
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | apt / dpkg | apt-mark showmanual > packages.txt |
Same command on this distribution. |
| Fedora | dnf / rpm | dnf repoquery --userinstalled > packages.txt |
Equivalent workflow for this distribution. |
| Arch | pacman | pacman -Qqe > packages.txt |
Equivalent workflow for this distribution. |
Keep learning