To install a downloaded Debian package on Ubuntu or Debian, open a terminal in the folder containing the file and run sudo apt install ./package-name.deb. Review APT’s proposed changes before confirming. The ./ tells APT to use a local file; APT can also resolve dependencies from your configured repositories when compatible packages are available.
Install the local .deb with APT
- Open a terminal and go to the directory containing the downloaded file. Replace
package-name.debwith its exact filename, preserving capitalization and spaces as needed:sudo apt install ./package-name.deb - If the file is in another directory, provide its full path instead:
sudo apt install /path/to/package-name.deb - Read APT’s transaction summary and proposed package changes. If they make sense, enter
Ywhen prompted. To cancel without making changes, enterN.
The ./ prefix matters: it identifies the argument as a local path rather than a package name to find in a repository. Debian and Ubuntu document this local-file installation pattern: Debian Reference and Ubuntu Server documentation.
As an Amazon Associate I earn from qualifying purchases.
Choose APT or dpkg
| Tool | Command | What it does | Limitation |
|---|---|---|---|
| APT | sudo apt install ./package-name.deb |
Installs a local package and attempts to resolve dependencies from configured repositories. | It can resolve dependencies only if compatible packages are available from those repositories; manual handling may still be necessary. Ubuntu; Debian |
| dpkg | sudo dpkg -i ./package-name.deb |
Performs a lower-level installation of the local archive. | It does not automatically download and install missing dependencies. Ubuntu Community Help; dpkg manual |
For a straightforward installation, start with APT. Use dpkg -i when you specifically need that lower-level operation or are following a process that handles dependencies separately.
Check the proposed changes before accepting
APT shows the packages it plans to install and any related changes, then asks for confirmation. Check whether the transaction includes unexpected packages or proposes removing or upgrading software you rely on. Enter N if the plan does not look right; do not accept a transaction you cannot explain.
#1 Best Overall
Dependency metadata can distinguish required and optional packages. Ubuntu’s tutorial describes Depends as required, Recommends as strongly useful but not strictly required, and Suggests as optional enhancements. Omitting optional packages can affect available features, so consult the software publisher’s instructions if something is missing.
Understand what the trust checks do—and do not—verify
A .deb extension identifies a package format, not a trustworthy publisher. Download packages from the software publisher or another source you trust. If the publisher provides a signature or checksum procedure, follow it and obtain the expected signature or checksum through an independently trusted channel.
Rank #2
APT authenticates packages obtained through configured repositories by checking signed repository metadata and cryptographic hashes. That repository protection does not by itself prove that an arbitrary file you downloaded is safe just because you install it with apt install ./file.deb. Debian explains the repository authentication chain in its package authenticity guide; the dpkg-deb manual notes that binary packages are usually not individually signed and that higher-level APT supports repository package authentication.
Recommended Free Tools
Ubuntu cautions that non-standard software sources can make a system unstable or non-functional. Investigate a source before trusting its packages, and do not bypass a trust warning or add a repository key without understanding who controls it and what that trust allows. See Ubuntu’s guidance on repositories.
Rank #3
Fix dependency or installation errors
APT reports unmet dependencies or version conflicts
Read the complete error output; it may name the unresolved dependency or incompatible version. APT can obtain dependencies only from your configured repositories, and only when compatible versions are available. Do not guess at replacement package names. Check the package publisher’s requirements and the distribution’s repositories before deciding what to install.
Refresh repository metadata if it may be stale
If you need current repository metadata, run sudo apt update, then retry the local-file command. This updates APT’s local package index; it is not a system upgrade and is not a mandatory prerequisite every time you install a local package.
Rank #4
Check whether the package is installed
Use dpkg -l to inspect package status. To filter for a known package name, for example:
Free tools Windows power users keep installed
One-click scans. No signup required.
dpkg -l package-name
Replace package-name with the package’s actual name; the archive filename is not necessarily the same as its package name.
Best Value
Inspect installed files and package history
- List files recorded for an installed package:
dpkg -L package-name. - Find which installed package owns a path:
dpkg -S /path/to/file. Some generated files may not be recorded as package-owned. - Review package-manager actions in
/var/log/dpkg.logif you need to reconstruct what happened.
These inspection commands and the log location are documented in Ubuntu’s package-management guidance.
Automating installation
The interactive apt command is intended for people at a terminal. For scripts, Ubuntu recommends apt-get for non-interactive use. Check the syntax and behavior against the manual for the specific Ubuntu or Debian release you are targeting before automating; the exact behavior across historical releases is not established here.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




