Windows winget uninstall equivalent in Linux
Removes installed packages from the system.
winget uninstall
sudo apt remove PACKAGE
sudo dnf remove PACKAGE
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.
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.
For the broader concept behind this mapping, read Linux package management.
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 option | Use |
|---|---|
apt remove pkg | Remove package, keep config files |
apt purge pkg | Remove package AND config files |
apt autoremove | Remove unused dependency packages |
dnf remove pkg | Remove 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".
| Distribution | Package manager / base | Equivalent command | Difference 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