{"id":16101,"date":"2022-03-21T21:33:07","date_gmt":"2022-03-21T21:33:07","guid":{"rendered":"https:\/\/linuxways.net\/?p=16101"},"modified":"2022-03-21T21:33:07","modified_gmt":"2022-03-21T21:33:07","slug":"how-to-install-debian-deb-package","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-debian-deb-package\/","title":{"rendered":"How to Install Debian (.deb) Package"},"content":{"rendered":"<p>Most users feel difficult in installing the local Debian (.deb) packages on your Linux system. So, if they have an appropriate .deb file of required software, they do not know how can install it on the Debian system. There are some useful commands are available in Linux that facilitate users to install local Debian (.deb) packages.<\/p>\n<p>In this tutorial, we will go through how to install Debian (.deb) packages in Debian 11 distribution using the command line.<\/p>\n<p>The following methods are available to install Debian (.deb) packages on Debian 11 system:<\/p>\n<h2>Method 1: Install Debian packages using Apt<\/h2>\n<p>The default command-line tool, Apt (Advanced packaging tool)\u00a0is used to install new packages, update an existing package, upgrade and remove certain packages from Debian, Ubuntu, and LinuxMint distributions.<\/p>\n<p>The apt command does not install \u201c.deb\u201d packages directly. It only installs the primary name packages such as MongoDB, apcahe2, etc. Apt command retrieves the package information from the \u2018\/etc\/apt\/sources.list\u2019 file and installs the package using the package name.<\/p>\n<p>So, if we want to install a local Debian package (.deb), it is necessary to specify the .deb file path using \u201c.\/\u201d with the name.<\/p>\n<pre>$ sudo apt install .\/libappindicator3-1_0.4.92-7_amd64.deb<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"360\" class=\"wp-image-16102\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-121.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-121.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-121-300x137.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-121-768x351.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<h2>Method 2: Install Debian Packages using dpkg<\/h2>\n<p>Dpkg is another command line package manager used to install Debian packages. It is also used to manage, upgrade, and remove packages from Debian and its other derivatives such as LinuxMint and Ubuntu.<\/p>\n<p>Unlike apt package manager, it does not download and install packages along with all dependencies. Dpkg does not install packages from remote addresses. It only installs the downloaded packages. Use the \u2018i\u2019 flag with the dpkg command to install Debian packages on Debian 11 system.<\/p>\n<pre>$ sudo dpkg -i libappindicator3-1_0.4.92-7_amd64.deb<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"149\" class=\"wp-image-16103\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-122.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-122.png 789w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-122-300x57.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-122-768x145.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/p>\n<p>If you receive an error after installing a package on the Debian system then, using the \u2018-f\u2019 flag with the \u2018dpkg\u2019 command this error can be resolved. Use the following command to resolve the broken dependencies error:<\/p>\n<pre>$ sudo apt-get install -f<\/pre>\n<h2>Method 3: Install Debian Packages using the Gdebi command<\/h2>\n<p>Gdebi is another command-line tool used to install local Debian packages. It installs the package\u2019s dependencies during the software installation. The gdebi is not a default command-line tool. So, first, install gdebi by using the following command:<\/p>\n<pre>$ sudo apt install gdebi<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"787\" height=\"515\" class=\"wp-image-16104\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-123.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-123.png 787w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-123-300x196.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-123-768x503.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>Install local Debian packages using the following gdebi command:<\/p>\n<pre>$ sudo gdebi libappindicator3-1_0.4.92-7_amd64.deb<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"789\" height=\"255\" class=\"wp-image-16105\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-124.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-124.png 789w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-124-300x97.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/03\/word-image-124-768x248.png 768w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>We have seen in this guide how to install Debian (.deb) packages on Debian 11 Linux distribution. The above commands apt, dpkg and gdebi help us to install Debian packages on Debian, Ubuntu, and LinuxMint distributions.<\/p>","protected":false},"excerpt":{"rendered":"<p>Most users feel difficult in installing the local Debian (.deb) packages on your Linux system. So, if they have an appropriate .deb file of required software, they do&hellip;<\/p>","protected":false},"author":1,"featured_media":16121,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[122,146],"class_list":["post-16101","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-2","tag-packages"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=16101"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/16101\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/16121"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=16101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=16101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=16101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}