Windows dpkg -i / msiexec /i equivalent in Linux
Installs a local .deb package file you have downloaded manually, rather than from a repository.
dpkg -i / msiexec /i
sudo apt install ./package.deb
sudo dnf install ./package.rpm
sudo pacman -U ./package.pkg.tar.zst
Overview
What this command does
On Windows, "dpkg -i / msiexec /i" is used to install a manually downloaded .deb package. On Linux, the closest practical mapping shown here is "apt install ./package.deb". Installs a local .deb package file you have downloaded manually, rather than from a repository. This reference is grouped under Package Management.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows dpkg -i / msiexec /i maps to apt install ./package.deb 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 a manually downloaded .deb package
Installs a local .deb package file you have downloaded manually, rather than from a repository.
apt install ./package.deb
Install .deb with dependency handling (preferred)
dpkg -i package.deb
Install .deb directly (no dep resolution)
apt --fix-broken install
Fix broken dependencies after dpkg install
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
wget https://example.com/app.deb
sudo apt install ./app.deb
sudo apt --fix-broken install
Walkthrough
Examples with explanations
# Windows: msiexec /i installer.msi
# Download and install:
wget https://example.com/app.deb
sudo apt install ./app.deb # handles dependencies
# Fix broken deps if you used dpkg -i:
sudo apt --fix-broken install
Reference
Common options and variations
| Command or option | Use |
|---|---|
apt install ./package.deb | Install .deb with dependency handling (preferred) |
dpkg -i package.deb | Install .deb directly (no dep resolution) |
apt --fix-broken install | Fix broken dependencies after dpkg install |
sudo dnf install ./package.rpm | Install .rpm on Fedora/RHEL |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
The equivalent is distribution-specific for this task: Debian/Ubuntu uses "sudo apt install ./package.deb"; Fedora uses "sudo dnf install ./package.rpm"; Arch uses "sudo pacman -U ./package.pkg.tar.zst".
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | apt/dpkg | sudo apt install ./package.deb |
apt can install a local .deb while resolving dependencies. |
| Fedora | dnf/rpm | sudo dnf install ./package.rpm |
dnf can install a local .rpm while resolving dependencies. |
| Arch | pacman | sudo pacman -U ./package.pkg.tar.zst |
pacman -U installs a local Arch package file. |
Keep learning