Table of Contents
This tip is about the how to Install DEB File in Linux. So read this free guide, How to Install DEB File in Linux step by step. If you have query related to same article you may contact us.
How to Install DEB File in Linux – Guide
Files with the .deb extension are packages for Debian-based systems. You can install Debian packages directly using the apt repositories (PPA). It also allows locally downloaded deb packages to be installed from the command line. Ubuntu and other Debian based systems offer dpkg (Debian Package Management System) to install .deb files directly. Another apt command is a powerful command-line tool that works in conjunction with Ubuntu’s Advanced Packaging Tool, an aid for managing Debian packages.
downloading deb files
For demonstration purposes, we will download and install the TeamViewer deb file. TeamViewer is a complete solution for remote support, desktop sharing, online meetings and file transfer between computers.
Launch your web browser and navigate to the TeamViewer for Linux download page. Download the deb package by clicking the Ubuntu and Debian download link.
If you prefer the terminal, you can download the deb file with wget or curl :
Installing deb files from the command line
When it comes to installing deb packages from the command line, you have several tools at your disposal. In the following sections, we’ll show you how to use apt, gdebi and dpkg utilities to install deb packages.
Installing deb files with apt
apt is a command line utility to install, update, remove and manage deb packages on Ubuntu, Debian and related Linux distributions. It was introduced in Ubuntu 14.04 and combines the most commonly used apt-get and apt-cache commands.
To install local deb packages with apt, you need to provide the full path to the deb file. If the file is located in your current working directory instead of typing the absolute path, you can append ./ before the package name. Otherwise, apt will try to retrieve and install the package from the Ubuntu repositories.
You will be prompted to type Y to continue:
The apt package manager will resolve and install all package dependencies.
Installing deb files with gdebi
gdebi is a tool to install local deb packages. It is not installed by default on Ubuntu, but you can install it with the following command:
To install the deb package with the gdebi type:
Type y when prompted and gdebi will resolve and install the deb package and all its dependencies for you.
Installing deb files with dpkg
dpkg is a low-level package manager for Debian-based systems. Use the -i (or –install) option to install deb packages with dpkg.
Unlike apt and gdebi, dpkg does not resolve dependencies. If you get any dependency errors while installing deb packages, you can use the following apt command to resolve and install all package dependencies:
Installing deb packages using GUI
If you prefer to use a graphical interface, just download the deb file and open it with a double click.
This will open the standard Graphical Software Center distribution:
Click on the Install button button and the Authenticate dialog box will open.
Enter the administrative password and click on the Authenticate button button.
Installation may take some time depending on the size of the file and its dependencies. Once the deb package is installed, “Install” button inside the Ubuntu Software Center will change to “Remove”.
That’s all, the application has been installed on your system and you can start using it.
Final note
I hope you like the guide How to Install DEB File in Linux. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.