Windows winget install / choco install equivalent in Linux
Installs programs and tools from an online repository — like an App Store for the terminal.
winget install / choco install
sudo apt update && sudo apt install PACKAGE
sudo dnf install PACKAGE
sudo pacman -S PACKAGE
Overview
What this command does
On Windows, "winget install / choco install" is used to install software packages. On Linux, the closest practical mapping shown here is "sudo apt install". Installs programs and tools from an online repository — like an App Store for the terminal. This reference is grouped under Package Management.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows winget install / choco install maps to apt install 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
Install software packages
Installs programs and tools from an online repository — like an App Store for the terminal.
apt install pkg
Install a package (Debian/Ubuntu)
dnf install pkg
Install a package (Fedora/RHEL)
pacman -S pkg
Install a package (Arch Linux)
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
sudo apt install vlc
sudo apt install htop curl git
apt search video player
apt show vlc
Walkthrough
Examples with explanations
# Windows: winget install vlc
sudo apt install vlc # install VLC media player
sudo apt install htop curl git # install multiple at once
# Search before installing:
apt search video player # find packages
apt show vlc # read about it first
Reference
Common options and variations
| Command or option | Use |
|---|---|
apt install pkg | Install a package (Debian/Ubuntu) |
dnf install pkg | Install a package (Fedora/RHEL) |
pacman -S pkg | Install a package (Arch Linux) |
apt search pkg | Search for a package by name |
apt show pkg | Show package description and info |
apt install -y pkg | Install without confirmation prompt |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
The equivalent is distribution-specific for this task: Debian/Ubuntu uses "sudo apt update && sudo apt install PACKAGE"; Fedora uses "sudo dnf install PACKAGE"; Arch uses "sudo pacman -S PACKAGE".
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | apt | sudo apt update && sudo apt install PACKAGE |
APT installs from configured .deb repositories. |
| Fedora | dnf | sudo dnf install PACKAGE |
DNF installs from RPM repositories and handles dependencies. |
| Arch | pacman | sudo pacman -S PACKAGE |
Pacman installs from enabled Arch repositories; use exact package names. |
Keep learning