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

Windows winget install / choco install equivalent in Linux

Installs programs and tools from an online repository — like an App Store for the terminal.

Windows winget install / choco install
→
Linux equivalents
Debian/Ubuntu apt
sudo apt update && sudo apt install PACKAGE
Fedora dnf
sudo dnf install PACKAGE
Arch pacman
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.

Migration tip: Linux package managers are one of its <strong>best features</strong>. No hunting for installers online — just type the package name and it installs, along with any dependencies automatically.

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.

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 optionUse
apt install pkgInstall a package (Debian/Ubuntu)
dnf install pkgInstall a package (Fedora/RHEL)
pacman -S pkgInstall a package (Arch Linux)
apt search pkgSearch for a package by name
apt show pkgShow package description and info
apt install -y pkgInstall 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".

DistributionPackage manager / baseEquivalent commandDifference 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

Related Package Management commands