How to install a .deb file on Ubuntu (apt, dpkg and the App Center)
By Pull This RepoPosted 4 min read
Short answer
To install a .deb file on Ubuntu, open a terminal in the folder that holds it and run sudo apt install ./name-of-file.deb. The leading ./ tells APT you mean a local file, and APT then pulls in any missing dependencies from Ubuntu's repositories. dpkg -i also works but cannot fetch dependencies, and App Center can open third-party debs from Ubuntu 24.10 on.
A .deb file is a Debian software package, the format Ubuntu, Debian, Linux Mint and Pop!_OS use under the hood. When a project on GitHub offers a Linux download, a .deb is often the one meant for Ubuntu. The quickest way to install a deb file on Ubuntu is one APT command run against the file, and this page covers that, the older dpkg route, the App Center, and how to remove the package later. Every command was checked against Ubuntu's own docs, the apt and dpkg manuals and the Debian Administrator's Handbook on 22 November 2026.
How do you install a .deb file with apt?
Point apt install at the file with a path that starts with ./. Step by step:
- Download the .deb. Pick the file that matches your machine:
amd64for most PCs,arm64for ARM boards and some laptops. - Open a terminal and
cdto the folder that holds it, usually~/Downloads. - Run the install with your file name.
Here is a real one, using the Linux build of GitHub Desktop from the shiftkey/desktop releases page (version 3.4.13, the latest release there on 22 November 2026):
cd ~/Downloads
sudo apt install ./GitHubDesktop-linux-amd64-3.4.13-linux1.debAPT shows what it will install, including any dependencies, and asks you to confirm. Our GitHub Desktop on Linux guide covers that app in full.
Why does the ./ matter?
It tells APT you mean a file on disk. The Debian Administrator's Handbook puts it plainly: the leading ./ makes it clear you are referring to a filename and not to the name of a package available in one of the repositories. Without it, apt install something.deb goes looking in the repositories for a package with that name and fails.
The handbook also notes that APT installs the file "together with its dependencies", as long as those dependencies are available in the repositories you have set up. That is the main reason to use APT over dpkg.
How do you install a .deb with dpkg?
Run sudo dpkg -i with the file name. This is the older, lower-level tool, and Ubuntu's Server docs use it in their own example:
sudo dpkg -i zip_3.0-4_amd64.debThe catch is in the same docs: dpkg cannot automatically download and install packages or their dependencies. If the package needs a library you do not have, it stops part way and leaves the package unpacked but not configured. To finish the job, let APT fill the gap:
sudo apt-get install -fThe apt-get manual describes -f, or --fix-broken, as an attempt "to correct a system with broken dependencies in place". It downloads whatever is missing and completes the setup. If you are starting fresh, skip this dance and use sudo apt install ./file.deb from the start.
Can you install a .deb from the App Center?
Yes on recent releases. Ubuntu's 24.10 release notes say "third party deb installation is now also supported" in App Center, and the 26.04 LTS summary lists third-party deb installation among the App Center changes since 24.04. On those versions you can open the downloaded file with App Center and click Install, then enter your password.
Ubuntu 24.04 LTS is the exception. It shipped with the new App Center before local deb support came back, so on 24.04 use the terminal command above. Ubuntu's desktop guide notes that App Center also lists many apps as both a snap and a deb, with the snap shown first, so check which one you are clicking.
Which method should you use?
| Method | Command or action | Handles dependencies | Best for |
|---|---|---|---|
| APT | sudo apt install ./file.deb | yes, from your repositories | almost everyone |
| dpkg | sudo dpkg -i file.deb | no, fix with sudo apt-get install -f | scripts, recovery, old guides |
| App Center | open the file, click Install | yes | Ubuntu 24.10 and later, no terminal |
How do you check what a .deb installed?
Use dpkg's query commands with the package name, which is usually shorter than the file name. From Ubuntu's Server docs and the dpkg manual:
# is it installed?
dpkg -l | grep package-name
# which files did it put on the system?
dpkg -L package-name
# which package owns a file?
dpkg -S /path/to/a/fileapt show package-name prints the package's details, including its dependencies and installed size. If you are not sure of the package name, dpkg -l | grep with part of the app's name usually finds it. Our Linux commands cheat sheet covers grep and the rest of these everyday tools.
How do you uninstall a .deb package?
Remove it by package name with APT:
sudo apt remove package-name
sudo apt purge package-name
sudo apt autoremoveThe apt manual says remove "removes all packaged data, but leaves usually small (modified) user configuration files behind", and purge clears those leftovers too, even for a package you already removed. autoremove cleans out dependencies that were installed automatically and are no longer needed.
Ubuntu's Server docs advise against sudo dpkg -r in most cases, because packages that depend on the one you remove stay installed and may stop working. APT handles that for you.
What is the catch with installing .deb files?
Updates and trust. A .deb you downloaded by hand does not usually update when you run sudo apt upgrade, unless the vendor's package also adds the vendor's own APT repository. When a project offers an official repository, a snap or a Flatpak, that route keeps the app current with the rest of the system, and it is worth the extra minute to set up.
Trust is the other half. Installing a .deb runs its install scripts as root, so only use files from the project's own site or its official GitHub Releases page. Ubuntu's Server docs say to "research the packages and their origins carefully before performing any installation", because some packages could leave your system unstable. If the project is on GitHub and you would rather build it yourself, start with how to clone a GitHub repo.
Pull it. Stash it.
Questions people ask
How do I install a .deb file on Ubuntu from the terminal?
Run cd to the folder with the file, then sudo apt install ./file-name.deb. The Debian Administrator's Handbook explains that the leading ./ is what makes APT treat the argument as a file and not as the name of a package in a repository. APT installs the dependencies it needs too.
What is the difference between apt install and dpkg -i for a .deb?
Both install the package, but Ubuntu's Server docs say dpkg cannot automatically download and install packages or their dependencies. If a dependency is missing, dpkg leaves the job half done. APT resolves dependencies from the repositories you have configured, so it is the safer choice.
Can I double-click a .deb file to install it on Ubuntu?
On current releases, yes. Ubuntu's 24.10 release notes say third-party deb installation is now supported in App Center, and the 26.04 LTS notes list it again. Ubuntu 24.04 shipped without it, so on that release the terminal command is the dependable route.
How do I uninstall a program I installed from a .deb file?
Use the package name, not the file name: sudo apt remove package-name. The apt manual says remove leaves small configuration files behind, while sudo apt purge package-name removes those too. Run sudo apt autoremove afterwards to clear dependencies nothing needs any more.
Will a .deb file update itself?
Usually not. A package installed from a downloaded file only updates when you download and install a newer file, unless the vendor's package also adds its own APT repository. If the vendor offers a repository or a snap, that route keeps the app updated with the rest of the system.
Sources
- 1Debian Administrator's Handbook: aptitude, apt-get and apt commands (read 2026-11-22)
- 2Ubuntu Server docs: Install and manage packages (read 2026-11-22)
- 3Ubuntu manpage: apt(8), Noble (read 2026-11-22)
- 4Ubuntu manpage: apt-get(8), Noble (read 2026-11-22)
- 5Ubuntu manpage: dpkg(1), Noble (read 2026-11-22)
- 6Ubuntu Desktop docs: Install an application (read 2026-11-22)
- 7Ubuntu 24.10 release notes (read 2026-11-22)
- 8Ubuntu 26.04 LTS summary for LTS users (read 2026-11-22)
- 9shiftkey/desktop releases
More repos like this
Get tomorrow's repo in your feed
One free, open source repo a day as a short video, shown working, with the catch named. Pull it. Stash it.
