This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 383,943 times.
Learn more...
Do you have a .DEB file that you need to install on Ubuntu, Debian, or Linux Mint? If you downloaded a DEB file for a program like Chrome from the web, you have several easy install options. If you prefer a graphical install method and use Ubuntu, you can use the App Center or Software Center to quickly install DEB files you downloaded from the web. Or, if you want to make sure you can easily install all dependencies for the program, try Gdebi, which has both graphical and command-line options. You can also use simple command-line tools like apt and dpkg, which both come preinstalled on all Debian-based systems. We'll walk you through 5 simple options for installing DEB files in Linux.
Install a DEB Package: Quick Steps
- In Ubuntu and other Debian-based Linux distros, you can usually double-click the DEB file and select "Install" for a quick GUI installation.
- Use Gdebi to install a DEB package and all of its related dependencies with one simple command.
- To install with Advanced Package Tool (apt), use sudo apt install ./filename.deb
- To install with dpkg, use sudo dpkg -i filename.deb
Steps
-
1Right-click the DEB file and select Open with App Center. If you're using Ubuntu 24.04 or later, you can use App Center to install DEB files.
- If you downloaded the DEB package using a web browser, it will be in your Downloads folder by default.
- If this doesn't work, try simply double-clicking the file. It should open in App Center by default.
-
2Click OK to display the DEB file's details. In most cases, you'll see a warning that tells you the file is potentially unsafe–this is just because you downloaded it from outside the App Center.[1]Advertisement
-
3Click the green Install button. Again, you may see a warning–if so, click Install to confirm you really want to install the DEB package. The package will then install.
-
4Uninstall DEB packages from App Center. If you need to remove the package, you can uninstall it from App Center as long as it has a GUI. To do so, click Installed at the top of App Center, select the program, and click Remove.[2]
-
Double-click the DEB file. If you're using an older version of Ubuntu, this method will guide you through one of the most straightforward ways to install DEB packages. Start by double-clicking the file in your file manager, which will instantly open the Ubuntu Software tool.
- If that doesn't work, right-click the file and choose Open with software install.
- If you run into trouble with dependencies when using this method, try using Gdebi instead.
-
Click the Install button. If prompted, you may need to enter your password to complete the installation process. Once the software is installed, you'll find its name and icon in your app grid.
- Having trouble finding your installed package? Just press the Super key (also known as the Windows key) on your keyboard, search for the application name, and then click it in the search results.
- To uninstall a package, just launch Ubuntu Software, click Installed, choose the package you want to delete, and then click Remove.[3]
-
Open a terminal window. If you're logged into a shell account, just skip to the next step. Otherwise, you can press Ctrl + Alt + T to open a terminal window in most desktop environments.
- If you're using Linux Mint, GDebi is already the default for installing DEB files. You can install the DEB file now through Gdebi by double-clicking it in your file manager and selecting Install Package.
-
Install Gdebi if you haven't already done so. Gdebi is one of the most reliable ways to install DEB packages because of its ability to determine and resolve dependencies. If you're not using Linux Mint, you'll need to install it. Here's how:[4] If Gdebi finds that the program requires other programs or libraries to run, the tool will also install those required files.
- On Ubuntu, you can get Gdebi from Ubuntu Software or App Center. For any other Debian-based distro (or if you prefer using apt in Ubuntu), use these steps:
- Type sudo apt update and press Enter.
- Enter your password when prompted.
- Type sudo apt install gdebi and press Enter or Return.
- On Ubuntu, you can get Gdebi from Ubuntu Software or App Center. For any other Debian-based distro (or if you prefer using apt in Ubuntu), use these steps:
-
Use cd to navigate to the directory with the DEB file. For example, if you saved the file to /home/username/Downloads, type cd /home/username/Downloads and press Enter.
- Alternatively, if you want to use the Gdebi GUI, right-click the DEB file, and select Open with Other Application. Choose Gdebi when prompted, and then click Install Package to complete the installation.
-
Type sudo gdebi filename.deb and press ↵ Enter. Replace filename.deb with the DEB file's actual name. This installs the DEB package and all related dependencies.
- If you want to make Gdebi the default install tool for DEB packages in Ubuntu or any Ubuntu-related distribution, it's easy:
- Right-click a .DEB file and choose Properties.
- Click the "Open with" drop-down menu and choose Gdebi Package Installer.
- If you want to uninstall a package you installed with Gdebi, use the apt command. The syntax is sudo apt remove packagename.
- If you want to make Gdebi the default install tool for DEB packages in Ubuntu or any Ubuntu-related distribution, it's easy:
-
Open a terminal window. If you're logged into a shell account, just skip to the next step. Otherwise, you can press Ctrl + Alt + T to open a terminal window in most window managers.
- Apt is normally used to download and install software from remote sources, but you can use it to install local DEB packages using a special syntax.
-
Use cd to navigate to the directory with the DEB file. For example, if you saved the file to /home/username/Downloads, type cd /home/username/Downloads and press ↵ Enter or ⏎ Return.
-
Run the installation command. Type sudo apt install ./filename.deb and press ↵ Enter or ⏎ Return. The software will now install.
- Be sure to replace filename.deb with the actual name of the file, and take note of the ./ before it—if you leave it out, the apt tool will try searching for the package in remote repositories.
- To see a list of all installed packages with apt, use the command sudo apt list --installed.
- To uninstall a package with apt, use the command sudo apt remove packagename.
-
Open a terminal window. If you're logged into a shell account, just skip to the next step. Otherwise, you can press Ctrl + Alt + T to open a terminal window in most window managers.[5]
-
Use cd to navigate to the directory with the DEB file. For example, if you saved the file to /home/username/Downloads, type cd /home/username/Downloads and press ↵ Enter.
-
Type sudo dpkg -i filename.deb and press ↵ Enter. Replace filename.deb with the name of the DEB file. This command will install the package.[6]
- Make sure you enter the -i using a lowercase i, as Dpkg commands are case-sensitive.
- If it's the first time you've run a command using sudo in this window, you'll have to enter your password when prompted to continue.
-
Resolve any dependency errors (optional). If the previous command threw an error about dependencies, run sudo apt-get install -f to resolve them.
- To see a list of all installed packages with Dpkg, use the command sudo dpkg-query -l | less.
- You can easily remove packages with Dpkg using dpkg -r packagename.[7]
Community Q&A
-
QuestionHow do you install a .deb file in Windows?
wikiHow Staff EditorThis answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.
Staff Answer
wikiHow Staff EditorStaff AnswerWhile .deb files cannot be used to install Windows apps, you can install them if you're using Windows Subsystem for Linux. If you've enabled WSL and are using the default Linux distribution (Ubuntu), you can install the .deb file using the command "sudo apt install ./filename.deb". -
QuestionDoes Debian use Apt or Yum to install packages?
wikiHow Staff EditorThis answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.
Staff Answer
wikiHow Staff EditorStaff AnswerDebian, and Debian-based distributions like Ubuntu, uses the Apt package manager. Yum comes with Red Hat-based Linux distributions like RHEL, Fedora, and CentOS. -
QuestionWhere are Debian packages installed on Ubuntu?
wikiHow Staff EditorThis answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.
Staff Answer
wikiHow Staff EditorStaff AnswerInstall locations vary, but binary files will usually be installed in /usr/bin, and libraries in /usr/lib or /lib. To find out where a DEB package was installed, use the command "dpkg -L ".
Video
Tips
References
- ↑ https://youtu.be/KP-KQeIgq30?si=Dh2T6Uc-bYNkvo3T&t=107
- ↑ https://help.ubuntu.com/stable/ubuntu-help/addremove-remove.html.en
- ↑ https://help.ubuntu.com/stable/ubuntu-help/addremove-remove.html.en
- ↑ https://manpages.ubuntu.com/manpages/resolute/en/man1/gdebi.1.html
- ↑ https://ubuntu.com/tutorials/command-line-for-beginners#3-opening-a-terminal
- ↑ https://phoenixnap.com/kb/install-deb-files-ubuntu
- ↑ https://man7.org/linux/man-pages/man1/dpkg.1.html
About This Article
1. Open a terminal window.
2. Change to the directory with the DEB file.
3. Type "sudo dpkg –i filename.deb" and press Enter.
4. Enter your password.
5. Run "sudo apt-get install -f" to resolve errors.














