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

Windows winget uninstall equivalent in Linux

Removes installed packages from the system.

Windows winget uninstall
→
Linux equivalents
Debian/Ubuntu apt
sudo apt remove PACKAGE
Fedora dnf
sudo dnf remove PACKAGE
Arch pacman
sudo pacman -Rns PACKAGE

Overview

What this command does

On Windows, "winget uninstall" is used to uninstall software packages. On Linux, the closest practical mapping shown here is "sudo apt remove". Removes installed packages from the system. This reference is grouped under Package Management.

Migration tip: <code>apt remove</code> removes the program but leaves config files. <code>apt purge</code> removes <strong>everything including config files</strong>. Use purge for a clean uninstall.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows winget uninstall maps to apt remove / purge 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.

Elevated privilege appears in this workflow

At least one example uses sudo. Confirm the target path, device, service or package before running the elevated form; do not add sudo simply to bypass an unexplained permission error.

Practical tasks

Common use cases

Uninstall software packages

Removes installed packages from the system.

apt remove pkg

Remove package, keep config files

apt purge pkg

Remove package AND config files

apt autoremove

Remove unused dependency packages

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

sudo apt remove vlc
sudo apt purge vlc
sudo apt autoremove

Walkthrough

Examples with explanations

# Windows: winget uninstall vlc
sudo apt remove vlc          # uninstall VLC
sudo apt purge vlc           # uninstall + remove config files

# Clean up orphaned packages:
sudo apt autoremove           # remove no-longer-needed deps

Reference

Common options and variations

Command or optionUse
apt remove pkgRemove package, keep config files
apt purge pkgRemove package AND config files
apt autoremoveRemove unused dependency packages
dnf remove pkgRemove on Fedora/RHEL

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The equivalent is distribution-specific for this task: Debian/Ubuntu uses "sudo apt remove PACKAGE"; Fedora uses "sudo dnf remove PACKAGE"; Arch uses "sudo pacman -Rns PACKAGE".

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu apt sudo apt remove PACKAGE Use apt purge PACKAGE if you also want package configuration removed.
Fedora dnf sudo dnf remove PACKAGE Removes the package and no-longer-needed dependencies when applicable.
Arch pacman sudo pacman -Rns PACKAGE -R removes; -Rns also removes unused dependencies and config backups created by pacman.

Keep learning

Related Package Management commands