Windows
Linux
Package Management
Windows winget upgrade --all equivalent in Linux
Downloads and installs available updates from configured package repositories.
Windows
→
winget upgrade --all
Linux equivalents
sudo apt update && sudo apt upgrade
sudo dnf upgrade --refresh
sudo pacman -Syu
Overview
What this command does
Downloads and installs available updates from configured package repositories.
Migration tip: Arch users should perform full upgrades with
pacman -Syu. Avoid partial upgrades such as refreshing databases without completing the upgrade.Practical tasks
Common use cases
Upgrade installed packages
Downloads and installs available updates from configured package repositories.
sudo apt update && sudo apt upgrade
Upgrade Debian or Ubuntu
sudo pacman -Syu
Upgrade Arch Linux
sudo dnf upgrade
Upgrade Fedora
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
sudo apt update && sudo apt upgrade
sudo pacman -Syu
sudo dnf upgrade
Walkthrough
Examples with explanations
sudo apt update && sudo apt upgrade # upgrade Debian-based systems
sudo pacman -Syu # perform a full Arch upgrade
sudo dnf upgrade # upgrade Fedora
Reference
Common options and variations
| Command or option | Use |
|---|---|
sudo apt update && sudo apt upgrade | Upgrade Debian or Ubuntu |
sudo pacman -Syu | Upgrade Arch Linux |
sudo dnf upgrade | Upgrade Fedora |
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 update && sudo apt upgrade |
APT separates metadata refresh from the upgrade operation. |
| Fedora | dnf | sudo dnf upgrade --refresh |
Refreshes metadata and upgrades in one command. |
| Arch | pacman | sudo pacman -Syu |
Arch expects full-system upgrades; do not selectively sync old/new repositories. |
Keep learning