{"id":12151,"date":"2019-03-22T12:34:04","date_gmt":"2019-03-22T12:34:04","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12151"},"modified":"2019-03-22T12:34:04","modified_gmt":"2019-03-22T12:34:04","slug":"3-command-line-tools-to-install-local-debian-deb-packages","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/22\/3-command-line-tools-to-install-local-debian-deb-packages\/","title":{"rendered":"3 Command Line Tools to Install Local Debian (.DEB) Packages"},"content":{"rendered":"<p>In this tutorial we will learn how to install local software packages (<strong>.DEB<\/strong>) in\u00a0<strong>Debian<\/strong>\u00a0and its derivatives such as\u00a0<strong>Ubuntu<\/strong>\u00a0and\u00a0<strong>Linux Mint<\/strong>\u00a0using three different command line tools and they are\u00a0<a href=\"https:\/\/www.tecmint.com\/dpkg-command-examples\/\" target=\"_blank\" rel=\"noopener\">dpkg<\/a>,\u00a0<a href=\"https:\/\/www.tecmint.com\/apt-advanced-package-command-examples-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">apt<\/a>\u00a0and\u00a0<strong>gdebi<\/strong>.<\/p>\n<p>This is useful to those new users who have migrated from\u00a0<strong>Windows<\/strong>\u00a0to\u00a0<strong>Ubuntu<\/strong>\u00a0or\u00a0<strong>Linux Mint<\/strong>. The very basic problem they face is installing local software on system.<\/p>\n<p>However,\u00a0<strong>Ubuntu<\/strong>\u00a0and\u00a0<strong>Linux Mint<\/strong>\u00a0has its own\u00a0<strong>Graphical Software Center<\/strong>\u00a0for easy software installation, but we will be looking forward to installing packages through terminal way.<\/p>\n<h3>1. Install Software Using Dpkg Command<\/h3>\n<p><a href=\"https:\/\/www.tecmint.com\/dpkg-command-examples\/\" target=\"_blank\" rel=\"noopener\">Dpkg<\/a>\u00a0is a package manager for\u00a0<strong>Debian<\/strong>\u00a0and its derivatives such as\u00a0<strong>Ubuntu<\/strong>\u00a0and\u00a0<strong>Linux Mint<\/strong>. It is used to install, build, remove and manage\u00a0<code>.deb<\/code>\u00a0packages. but unlike other Linux package management systems, it cannot automatically download and install packages with their dependencies.<\/p>\n<p>To install a local package, use the\u00a0<strong>dpkg command<\/strong>\u00a0with the\u00a0<code>-i<\/code>\u00a0flag along with package name as shown.<\/p>\n<pre>$ sudo dpkg -i teamviewer_amd64.deb\r\n<\/pre>\n<div id=\"attachment_29136\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-in-Ubuntu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29136\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-in-Ubuntu.png\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-in-Ubuntu.png 908w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-in-Ubuntu-768x184.png 768w\" alt=\"Install Local Package in Ubuntu\" width=\"908\" height=\"217\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Local Package in Ubuntu<\/p>\n<\/div>\n<p>If you get any dependency errors while installing or after installing and launching a program, you can use the following\u00a0<strong>apt command<\/strong>\u00a0to resolve and install dependencies using the\u00a0<code>-f<\/code>\u00a0flag, which tells the program to fix broken dependencies.<\/p>\n<pre>$ sudo apt-get install -f\r\n<\/pre>\n<p>To remove a package use\u00a0<code>-r<\/code>\u00a0option or if you want to remove all its files including configuration files, you can purge it using the\u00a0<code>--purge<\/code>\u00a0option as shown.<\/p>\n<pre>$ sudo dpkg -r teamviewer       [Remove Package]\r\n$ sudo dpkg --purge teamviewer  [Remove Package with Configuration Files]\r\n<\/pre>\n<div id=\"attachment_29137\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Remove-Package-in-Ubuntu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29137\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Remove-Package-in-Ubuntu.png\" sizes=\"auto, (max-width: 889px) 100vw, 889px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Remove-Package-in-Ubuntu.png 889w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Remove-Package-in-Ubuntu-768x253.png 768w\" alt=\"Remove Package in Ubuntu\" width=\"889\" height=\"293\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Remove Package in Ubuntu<\/p>\n<\/div>\n<p>To know more about installed packages, read our article that shows how to\u00a0<a href=\"https:\/\/www.tecmint.com\/list-files-installed-from-rpm-deb-package-in-linux\/\" target=\"_blank\" rel=\"noopener\">list all files installed from a .deb package<\/a>.<\/p>\n<h3>2. Install Software Using Apt Command<\/h3>\n<p>The\u00a0<a href=\"https:\/\/www.tecmint.com\/apt-advanced-package-command-examples-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">apt command<\/a>\u00a0is a advanced command-line tool, which offers new software package installation, existing software package upgradation, updating of the package list index, and even upgrading the whole\u00a0<strong>Ubuntu<\/strong>\u00a0or\u00a0<strong>Linux Mint<\/strong>\u00a0system.<\/p>\n<p>It also offers\u00a0<a href=\"https:\/\/www.tecmint.com\/useful-basic-commands-of-apt-get-and-apt-cache-for-package-management\/\" target=\"_blank\" rel=\"noopener\">apt-get and apt-cache<\/a>\u00a0command-line tools for managing packages more interactively on\u00a0<strong>Debian<\/strong>and its derivatives such as\u00a0<strong>Ubuntu<\/strong>\u00a0and\u00a0<strong>Linux Mint<\/strong>\u00a0systems.<\/p>\n<p>Essentially,\u00a0<strong>apt-get<\/strong>\u00a0or\u00a0<strong>apt<\/strong>\u00a0do not understand\u00a0<code>.deb<\/code>\u00a0files, they are designed to primarily handle package names (for example\u00a0<strong>teamviewer<\/strong>,\u00a0<strong>apache2<\/strong>,\u00a0<strong>mariadb<\/strong>\u00a0etc..) and they retrieve and install\u00a0<code>.deb<\/code>\u00a0archives associated with a package name, from a source specified in the\u00a0<strong>\/etc\/apt\/sources.list<\/strong>\u00a0file.<\/p>\n<p>The only trick to installing a local Debian package using\u00a0<strong>apt-get<\/strong>\u00a0or\u00a0<strong>apt<\/strong>\u00a0is by specifying a local relative or absolute path (<code>.\/<\/code>\u00a0if in current dir) to the package, otherwise it will try to retrieve the package from remote sources and the operation will fail.<\/p>\n<pre>$ sudo apt install .\/teamviewer_amd64.deb\r\n$ sudo apt-get install .\/teamviewer_amd64.deb\r\n<\/pre>\n<div id=\"attachment_29140\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29140\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt.png\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt.png 986w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt-768x326.png 768w\" alt=\"Install Local Package Using apt in Ubuntu\" width=\"986\" height=\"419\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Local Package Using apt in Ubuntu<\/p>\n<\/div>\n<div id=\"attachment_29139\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt-Get.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29139\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt-Get.png\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt-Get.png 980w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Apt-Get-768x327.png 768w\" alt=\"Install Local Package Using apt-get in Ubuntu\" width=\"980\" height=\"417\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Local Package Using apt-get in Ubuntu<\/p>\n<\/div>\n<p>To remove a package use\u00a0<code>remove<\/code>\u00a0option or if you want to remove all its files including configuration files, you can purge it using the\u00a0<code>purge<\/code>\u00a0option as shown.<\/p>\n<pre>$ sudo apt-get remove teamviewer\r\n$ sudo apt-get purge teamviewer\r\nOR\r\n$ sudo apt remove teamviewer\r\n$ sudo apt purge teamviewer\r\n<\/pre>\n<h3>3. Install Software Using Gdebi Command<\/h3>\n<p><strong>gdebi<\/strong>\u00a0is a tiny command-line tool for installing local deb packages. It resolves and installs package dependencies on the fly. To install a package, use the following command.<\/p>\n<pre>$ sudo gdebi teamviewer_13.1.3026_amd64.deb\r\n<\/pre>\n<div id=\"attachment_29143\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Gdebi-in-Ubuntu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29143\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Gdebi-in-Ubuntu.png\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Gdebi-in-Ubuntu.png 936w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/04\/Install-Local-Package-Using-Gdebi-in-Ubuntu-768x497.png 768w\" alt=\"Install Local Packages Using Gdebi in Ubuntu\" width=\"936\" height=\"606\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Local Packages Using Gdebi in Ubuntu<\/p>\n<\/div>\n<p>To remove a package installed from\u00a0<strong>gdebi<\/strong>, you can use\u00a0<strong>apt<\/strong>,\u00a0<strong>apt-get<\/strong>\u00a0or\u00a0<strong>dpkg<\/strong>\u00a0commands using\u00a0<code>purge<\/code>\u00a0option as shown.<\/p>\n<pre>$ sudo apt purge teamviewer\r\nOR\r\n$ sudo apt-get purge teamviewer\r\nOR\r\n$ sudo dpkg --purge teamviewer<\/pre>\n<p>That\u2019s It! In this tutorial, we have explained three different command line tools for installing or removing local\u00a0<strong>Debian<\/strong>\u00a0packages in\u00a0<strong>Ubuntu<\/strong>\u00a0and\u00a0<strong>Linux Mint<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/install-local-deb-packages-in-debian-ubuntu-linux-mint\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will learn how to install local software packages (.DEB) in\u00a0Debian\u00a0and its derivatives such as\u00a0Ubuntu\u00a0and\u00a0Linux Mint\u00a0using three different command line tools and they are\u00a0dpkg,\u00a0apt\u00a0and\u00a0gdebi. This is useful to those new users who have migrated from\u00a0Windows\u00a0to\u00a0Ubuntu\u00a0or\u00a0Linux Mint. The very basic problem they face is installing local software on system. However,\u00a0Ubuntu\u00a0and\u00a0Linux Mint\u00a0has its own\u00a0Graphical &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/22\/3-command-line-tools-to-install-local-debian-deb-packages\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;3 Command Line Tools to Install Local Debian (.DEB) Packages&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12151","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12151"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12151\/revisions"}],"predecessor-version":[{"id":12152,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12151\/revisions\/12152"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}