← All commands
Topic hub Package Management
Windows Linux Package Management Command guide Packages

Windows winget export equivalent in Linux

Saves a list of manually installed packages.

Windows winget export
→
Linux equivalents
Debian/Ubuntu apt / dpkg
apt-mark showmanual > packages.txt
Fedora dnf / rpm
dnf repoquery --userinstalled > packages.txt
Arch pacman
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.

Migration tip: This mapping changes by distribution. Use the row for your system rather than substituting only the package-manager name: Debian/Ubuntu: apt-mark showmanual > packages.txt; Fedora: dnf repoquery --userinstalled > packages.txt; Arch: pacman -Qqe > packages.txt.

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.

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 optionUse
apt-mark showmanual > packages.txtExport installed package list
apt-mark --helpShow command help when supported
man apt-markOpen 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".

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

Related Package Management commands