Debian: How to Install a .deb File [Guide]

To install a downloaded .deb file on Debian, the best command for most users is sudo apt install ./package-name.deb. APT installs the local package and can also pull required dependencies from your configured Debian repositories. Debian's own reference documentation recommends APT for interactive package management and documents local .deb installation with a file path.

A Debian package is an archive that contains application files, package metadata, dependency information, and sometimes maintainer scripts. Because installing one can make system-level changes, download packages only from a publisher you trust.

1. Find the downloaded .deb file

Most browsers save downloads in ~/Downloads. Open your file manager and confirm the package is there before starting. In this guide, the example filename is example-app_1.0_amd64.deb; replace it with the real name of your package.

Debian Files app showing an example .deb package in the Downloads folder
A downloaded Debian package in the Downloads folder.

If the publisher provides a checksum or signature, verify it before installation. You can also inspect basic package metadata without installing anything:

dpkg-deb --info ~/Downloads/example-app_1.0_amd64.deb

2. Confirm the filename and architecture

Open Terminal and move to the download directory:

cd ~/Downloads

Then list Debian packages in that folder:

ls *.deb

Debian Terminal listing an example deb package with the ls command
Use ls *.deb to confirm the exact package filename.

If you are unsure whether the package matches your system, compare the architectures:

dpkg --print-architecture

dpkg-deb -f ./example-app_1.0_amd64.deb Architecture

For example, a normal 64-bit Intel or AMD Debian installation usually reports amd64, while many 64-bit ARM systems use arm64. Debian 13 also supports other architectures, so do not assume a package built for one CPU type will work on another.

3. Install the .deb with APT

For most cases, use APT:

sudo apt install ./example-app_1.0_amd64.deb

The leading ./ matters because it tells APT that you are giving it a local file path. An absolute path such as /home/user/Downloads/package.deb also works. Review the packages APT plans to install, then confirm when prompted.

Debian Terminal showing a successful sudo apt install command for a local deb package
APT can install a local .deb and resolve dependencies from configured repositories.

This is the simplest approach because APT handles dependency resolution automatically when the required packages are available. See the Debian Reference package-management chapter and the Debian APT command-line guide for the official syntax.

Alternative: install with dpkg

You can also install a local package directly with dpkg:

sudo dpkg -i ./example-app_1.0_amd64.deb

dpkg installs the package itself but does not fetch missing dependencies. If the package is left unconfigured because dependencies are missing, run:

sudo apt --fix-broken install

APT will attempt to install the missing dependencies and finish configuring packages. For that reason, starting with apt install ./file.deb is usually more convenient.

Install a .deb with GDebi

If you prefer a graphical installer, GDebi is still available in Debian's repositories. Install it first:

sudo apt update
sudo apt install gdebi

Then open the downloaded .deb with GDebi and choose Install Package. GDebi displays package details and resolves dependencies through APT. Debian describes GDebi as a tool for viewing and installing local Debian packages; the current package can be found on the official Debian Packages site.

GDebi Package Installer window showing an example Debian package and Install Package button
GDebi provides a graphical way to inspect and install a local Debian package.

Useful troubleshooting

  • APT says the file is unsupported or cannot be found: confirm the filename and include ./ before a file in the current directory.
  • Wrong architecture: download a build that matches the output of dpkg --print-architecture.
  • Dependencies are unavailable: run sudo apt update, check that the appropriate Debian repositories are enabled, and retry. A third-party package may also require libraries that are not available for your Debian release.
  • You downloaded several related packages: from their directory, sudo apt install ./*.deb can install them together while letting APT resolve dependencies.

How to remove the package later

To find the package name stored inside the file, run dpkg-deb -f ./example-app_1.0_amd64.deb Package. Then remove it with sudo apt remove package-name. Installing a standalone .deb does not automatically guarantee future updates; that depends on whether the publisher also configures a software repository or provides newer packages for you to install.

Leave a Comment

How to Record Speaker Output on Linux with Audacity

How to Record Speaker Output on Linux with Audacity

Capture Linux desktop audio in Audacity by routing its recording stream to your output device’s monitor source. Follow PulseAudio and PipeWire steps, export tips, and fixes for silent tracks.

How to Use Dropbox on Linux: Install and Sync Your Files

How to Use Dropbox on Linux: Install and Sync Your Files

Install Dropbox on Linux from the official package, sign in, sync a local folder, manage selective sync, and check status from the command line.

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

How to Install Inkscape on Linux: Ubuntu, Fedora, Arch, and More

Install Inkscape from your Linux distribution’s repositories, the Ubuntu stable PPA, Snap, or Flathub, with current commands and notes for choosing a package source.

How to Find and Remove Duplicate Files on Linux With FSlint

How to Find and Remove Duplicate Files on Linux With FSlint

Use FSlint to scan selected Linux folders, review duplicate groups, and safely delete redundant files or learn when hard-link merging is appropriate.

How to Install SABnzbd on Linux and Configure It

How to Install SABnzbd on Linux and Configure It

Install SABnzbd on Ubuntu or Debian, or run it in Docker on another Linux host. Then open the web interface and configure your provider and download folders.

How to Install the Paper GTK Theme on Linux

How to Install the Paper GTK Theme on Linux

Install the Paper GTK theme from supported Linux repositories, enable it for GTK apps in GNOME Tweaks, and see what the legacy theme can and cannot change.

How to Install and Set Up Plex on OpenMediaVault with Compose

How to Install and Set Up Plex on OpenMediaVault with Compose

The old OpenMediaVault Plex plugin is archived. Set up Plex on OMV 8 with OMV-Extras, the Compose plugin, persistent storage, and Plex’s official container.

How to Clean and Speed Up Ubuntu Safely

How to Clean and Speed Up Ubuntu Safely

Clean and speed up Ubuntu with safe APT cleanup, storage checks, and startup controls that help free space and troubleshoot a sluggish desktop.

How to Install the Hiri Email Client on Linux

How to Install the Hiri Email Client on Linux

Install Hiri on Linux with its Snap package or official tarball, add a desktop launcher, and check supported accounts plus a warning about Hiri’s old Snap release.

How to Get System Specifications for a Linux PC

How to Get System Specifications for a Linux PC

Use Fastfetch and built-in Linux commands to check your distro, kernel, CPU, memory, graphics, storage, and connected devices, then save a clear report.