Windows
Linux
Package Management
Windows winget uninstall equivalent in Linux
Removes installed packages from the system.
Windows
→
winget uninstall
Linux equivalents
sudo apt remove PACKAGE
sudo dnf remove PACKAGE
sudo pacman -Rns PACKAGE
Overview
What this command does
Removes installed packages from the system.
Migration tip:
apt remove removes the program but leaves config files. apt purge removes everything including config files. Use purge for a clean uninstall.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
This workflow changes mostly by Linux distribution package manager: Debian/Ubuntu uses apt, Fedora uses dnf, and Arch uses pacman.
| 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