{"id":2784,"date":"2023-01-02T10:46:06","date_gmt":"2023-01-02T10:46:06","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=2784"},"modified":"2023-12-31T06:06:46","modified_gmt":"2023-12-31T06:06:46","slug":"dpkg-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/dpkg-in-linux\/","title":{"rendered":"What is DPKG in Linux? [With Practical Applications]"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>DPKG<\/strong> is an abbreviation for <strong>Debian Package Manager.<\/strong> <strong>DPKG <\/strong>in <strong>Linux<\/strong> is useful for downloading, removing, or upgrading software packages. This<strong>\u00a0<\/strong>is a powerful tool that can also be used with <strong>sudo<\/strong>, which lets us be the super user or <a href=\"https:\/\/linuxsimply.com\/what-is-root-user-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>sudo root user<\/strong><\/a>.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_Use_DPKG\" >How to Use DPKG<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#Syntax_for_Using_DPKG_Command_in_Linux\" >Syntax for Using DPKG Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#Download_%E2%80%9Cdeb%E2%80%9D_File\" >Download &#8220;.deb&#8221; File<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_Install_a_Package_Using_DPKG_in_Linux\" >How to Install a Package Using DPKG in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_List_Installed_Packages_Using_DPKG\" >How to List Installed Packages Using DPKG<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_Unpack_a_Package_Using_DPKG_in_Linux\" >How to Unpack a Package Using DPKG in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#List_the_Contents_of_an_Installed_Package_Using_DPKG_in_Linux\" >List the Contents of an Installed Package Using DPKG in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_Show_Information_of_a_Package_Using_DPKG_in_Linux\" >How to Show Information of a Package Using DPKG in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_Show_the_Location_of_a_Package_Using_DPKG\" >How to Show the Location of a Package Using DPKG<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_Remove_a_Package_Using_DPKG\" >How to Remove a Package Using DPKG<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#How_to_Purge_a_Package_Using_DPKG\" >How to Purge a Package Using DPKG<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#DPKG_vs_APT\" >DPKG vs APT<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#People_Also_Ask\" >People Also Ask<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#Why_use_dpkg\" >Why use dpkg?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#Why_is_apt_used\" >Why is apt used?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#What_is_dpkg_vs_apt\" >What is dpkg vs apt?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#Why_use_sudo_with_apt\" >Why use sudo with apt?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Use_DPKG\"><\/span>How to Use DPKG<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>DPKG <\/strong>must be used with <strong>sudo.<\/strong> Because to install or remove you need to be a <strong>root <\/strong>user. As you know <strong>sudo <\/strong>gives the root privilege. You can use <strong>DPKG<\/strong> in multiple ways, for multiple purposes. For example, Installation, listing, or removal of packages. The <strong>DPKG<\/strong> command in <strong>Linux <\/strong>is a <strong>hashed <\/strong>command. This command takes different options to complete different operations.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Syntax_for_Using_DPKG_Command_in_Linux\"><\/span>Syntax for Using DPKG Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The syntax of DPKG command is given below:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">dpkg [OPTION]... FileName<\/code><\/pre>\n<p>The <strong>DPKG <\/strong>command in <strong>Linux <\/strong>has a lot of options. I have listed some of the important ones below.<\/p>\n<p>Here&#8217;s a table summarizing some useful options associated with the <strong>DPKG command<\/strong> in Linux:<\/p>\n<div class=\"su-table su-table-responsive su-table-alternate su-table-fixed\">\n<table style=\"width: 100%;height: 245px\">\n<tbody>\n<tr style=\"height: 25px\">\n<th style=\"width: 16.242%;height: 25px\" width=\"94\">Option<\/th>\n<th style=\"width: 41.4013%;height: 25px\" width=\"246\">Description<\/th>\n<\/tr>\n<tr style=\"height: 85px\">\n<td style=\"width: 16.242%;text-align: center;vertical-align: middle;height: 85px\" width=\"94\"><strong>dpkg -i package.deb<\/strong><\/td>\n<td style=\"width: 41.4013%;height: 85px;text-align: center;vertical-align: middle\" width=\"246\">Install a Debian package.<\/td>\n<\/tr>\n<tr style=\"height: 85px\">\n<td style=\"width: 16.242%;text-align: center;vertical-align: middle;height: 85px\" width=\"94\"><strong>dpkg -r package_name<\/strong><\/td>\n<td style=\"width: 41.4013%;height: 85px;text-align: center;vertical-align: middle\" width=\"246\">Remove a previously installed package.<\/td>\n<\/tr>\n<tr style=\"height: 25px\">\n<td style=\"width: 16.242%;text-align: center;vertical-align: middle;height: 25px\"><strong>dpkg &#8211;purge package_name<\/strong><\/td>\n<td style=\"width: 41.4013%;height: 25px;text-align: center;vertical-align: middle\">Remove a package along with its configuration files.<\/td>\n<\/tr>\n<tr style=\"height: 25px\">\n<td style=\"width: 16.242%;text-align: center;vertical-align: middle;height: 25px\"><strong>dpkg -l<\/strong><\/td>\n<td style=\"width: 41.4013%;height: 25px;text-align: center;vertical-align: middle\">List all installed packages.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.242%;text-align: center;vertical-align: middle\"><strong>dpkg -L package_name<\/strong><\/td>\n<td style=\"width: 41.4013%;text-align: center;vertical-align: middle\">List all files installed by a package.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 16.242%;text-align: center;vertical-align: middle\"><strong>dpkg -I package.deb<\/strong><\/td>\n<td style=\"width: 41.4013%;text-align: center;vertical-align: middle\">Display detailed information about a Debian package.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400\"><\/div><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Download_%E2%80%9Cdeb%E2%80%9D_File\"><\/span>Download &#8220;.deb&#8221; File<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">There are many ways that you can use the <strong>dpkg<\/strong> command. I will show you some examples in the next part of the article. Now first you need to have a &#8220;<strong>.deb<\/strong>&#8221; file. If you don\u2019t have one then get the file below by typing in the terminal.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">wget http:\/\/archive.ubuntu.com\/ubuntu\/pool\/universe\/c\/cowsay\/cowsay_3.03+dfsg2-4_all.deb<\/code><\/pre>\n<p>You can take a look at the picture below to see how this works:<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-2786\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1.png\" alt=\"installing a debian file\" width=\"825\" height=\"472\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-300x172.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-1024x586.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-767x439.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-1536x879.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-2048x1172.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-262x150.png 262w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-100x57.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-612x350.png 612w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-1-788x450.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Install_a_Package_Using_DPKG_in_Linux\"><\/span>How to Install a Package Using DPKG in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to install a package on your machine that is a <strong>.deb<\/strong> file then you will have to use an option. Normally option <strong>(-i) <\/strong>is useful for installing packages.<\/p>\n<p>To Install a .deb package using DPKG in Linux, follow the steps below:<\/p>\n<ol>\n<li><strong>\u00a0<\/strong>Open your <a href=\"https:\/\/linuxsimply.com\/what-is-terminal-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>Ubuntu terminal<\/strong><\/a>.<\/li>\n<li>\u00a0 Write the following command.\n<pre><code class=\"language-bash\" data-line=\"\">sudo dpkg -i cowsay_3.03+dfsg2-4_all.deb<\/code><\/pre>\n<\/li>\n<li>\u00a0 Now, press the <strong>ENTER <\/strong>button.<\/li>\n<li>\u00a0 Now, type your user password and press <strong>ENTER <\/strong>button.<b> <\/b><img decoding=\"async\" class=\"aligncenter wp-image-2787 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2.png\" alt=\"Installing using dpkg in linux\" width=\"825\" height=\"238\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-300x87.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-1024x295.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-766x221.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-1536x443.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-2048x591.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-520x150.png 520w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-100x29.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-1213x350.png 1213w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-2-788x227.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/li>\n<\/ol>\n<p>As you can see from the picture below that the <strong>.deb<\/strong> package installation is successful.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_List_Installed_Packages_Using_DPKG\"><\/span>How to List Installed Packages Using DPKG<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to see the packages on your machine that are <strong>.deb<\/strong> files then you will have to use an option. Normally option <strong>(-l) <\/strong>is useful for listing out packages.<\/p>\n<p>To see installed packages using DPKG, write \u00a0<code class=\"\" data-line=\"\">dpkg -l<\/code> in the terminal:<img decoding=\"async\" class=\"aligncenter wp-image-2788 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3.png\" alt=\"Listing insalled packages using dpkg in Linux.\" width=\"825\" height=\"481\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-300x175.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-1024x597.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-767x447.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-1536x896.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-2048x1194.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-257x150.png 257w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-100x58.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-600x350.png 600w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-3-788x459.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p>As you can see that the list of the installed packages is on the terminal.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Unpack_a_Package_Using_DPKG_in_Linux\"><\/span>How to Unpack a Package Using DPKG in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to unpack packages on your machine that are <strong>.deb<\/strong> files then you will have to use an option. Normally option <strong>(&#8211;unpack) <\/strong>is useful for listing out packages.<\/p>\n<p>To unpack a package using DPKG, follow the steps below:<\/p>\n<ol>\n<li><strong>\u00a0<\/strong>Open your <strong>Ubuntu terminal<\/strong>.<\/li>\n<li>\u00a0 Write the following command.\n<pre><code class=\"language-bash\" data-line=\"\">sudo dpkg --unpack cowsay_3.03+dfsg2-4_all.deb<\/code><\/pre>\n<\/li>\n<li>\u00a0 Now, press the <strong>ENTER <\/strong>button.<\/li>\n<li>\u00a0 Now, give your user password and press <strong>ENTER <\/strong>button.<span style=\"color: #800080;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2790 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5.png\" alt=\"Unpacking package using the dpkg in Linux\" width=\"825\" height=\"148\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-300x54.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-1024x184.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-764x137.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-1536x276.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-2048x367.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-836x150.png 836w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-100x18.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-1951x350.png 1951w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-5-788x141.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/span><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"List_the_Contents_of_an_Installed_Package_Using_DPKG_in_Linux\"><\/span>List the Contents of an Installed Package Using DPKG in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to see the <strong>contents of installed packages<\/strong> on your machine that are <strong>.deb<\/strong> files then you will have to use an option. Normally option <strong>(-c) <\/strong>is useful for listing the contents of an installed package.<\/p>\n<p>To list the contents of an installed package, follow the steps below:<\/p>\n<ol>\n<li><strong>\u00a0<\/strong>Open your <strong>Ubuntu terminal<\/strong>.<\/li>\n<li>\u00a0 Write the following commands.\n<pre><code class=\"language-bash\" data-line=\"\">sudo dpkg -c cowsay_3.03+dfsg2-4_all.deb<\/code><\/pre>\n<\/li>\n<li>\u00a0 Now, press the <strong>ENTER <\/strong>button.<\/li>\n<li>\u00a0 Now, give your user password and press <strong>ENTER <\/strong>button.<b> <\/b><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2789 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4.png\" alt=\"Using dpkg in Linux to print contents\" width=\"825\" height=\"441\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-300x160.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-1024x547.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-767x410.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-1536x821.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-2048x1095.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-281x150.png 281w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-100x53.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-655x350.png 655w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-4-788x421.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/li>\n<\/ol>\n<p>As you can see that the list of the contents of the <strong>installed package<\/strong> is printed on the terminal.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Show_Information_of_a_Package_Using_DPKG_in_Linux\"><\/span>How to Show Information of a Package Using DPKG in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to see the <strong>information of installed packages<\/strong> on your machine that are <strong>.deb<\/strong> files then you will have to use an option. Normally option <strong>(-I) <\/strong>is used for listing information of an installed package. Now follow the steps below to see how this works.<\/p>\n<ol>\n<li><strong>\u00a0<\/strong>Open your <strong>Ubuntu terminal<\/strong>.<\/li>\n<li>\u00a0 Write the following command.\n<pre><code class=\"language-bash\" data-line=\"\">sudo dpkg -I cowsay_3.03+dfsg2-4_all.deb<\/code><\/pre>\n<\/li>\n<li>\u00a0 Now, press the <strong>ENTER <\/strong>button.<\/li>\n<li>\u00a0 Now, give your user password and press <strong>ENTER <\/strong>button.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2791 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6.png\" alt=\"Showing information of files using dpkg in linux\" width=\"825\" height=\"442\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-300x161.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-1024x549.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-767x411.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-1536x823.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-2048x1097.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-280x150.png 280w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-100x54.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-653x350.png 653w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-6-788x422.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/li>\n<\/ol>\n<p>As you can see that the information on the <strong>installed package<\/strong> is printed on the terminal. Here you can see the <strong>installation size and other pieces of information<\/strong>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Show_the_Location_of_a_Package_Using_DPKG\"><\/span>How to Show the Location of a Package Using DPKG<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to see the <strong>location of installed packages<\/strong> on your machine that are <strong>.deb<\/strong> files then you will have to use an option. Normally option <strong>(-L) <\/strong>lists the contents of an installed package.<\/p>\n<p>To show the location of a package, follow the steps below:<\/p>\n<ol>\n<li><strong>\u00a0<\/strong>Open your <strong>Ubuntu terminal<\/strong>.<\/li>\n<li>\u00a0 Write the following commands and press <strong>ENTER<\/strong>.\n<pre><code class=\"language-bash\" data-line=\"\">\u00a0dpkg -L cowsay<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2792\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7.png\" alt=\"showing location of the packages\" width=\"700\" height=\"780\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-269x300.png 269w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-919x1024.png 919w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-767x855.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-1378x1536.png 1378w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-1838x2048.png 1838w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-135x150.png 135w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-100x111.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-314x350.png 314w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-7-788x878.png 788w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/li>\n<\/ol>\n<p>As you can see that the location of the installed package is printed on the terminal.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Remove_a_Package_Using_DPKG\"><\/span>How to Remove a Package Using DPKG<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to <strong>remove installed packages<\/strong> on your machine that are <strong>.deb<\/strong> files then you will have to use an option. Normally option <strong>(-r)<\/strong> removes an installed package. Now follow the steps below to see how this works.<\/p>\n<ol>\n<li><strong>\u00a0<\/strong>Open your <strong>Ubuntu terminal<\/strong>.<\/li>\n<li>\u00a0 Write the following command.\n<pre><code class=\"language-bash\" data-line=\"\">sudo dpkg -r cowsay_3.03+dfsg2-4_all.deb<\/code><\/pre>\n<\/li>\n<li>\u00a0 Now, press the <strong>ENTER <\/strong>button.<\/li>\n<li>\u00a0 Now, give your user password and press <strong>ENTER <\/strong>button.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2793 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8.png\" alt=\"Removing files\" width=\"825\" height=\"121\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-300x44.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-1024x150.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-764x112.png 764w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-1536x225.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-2048x300.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-1023x150.png 1023w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-100x15.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-8-788x115.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Purge_a_Package_Using_DPKG\"><\/span>How to Purge a Package Using DPKG<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to <strong>remove configuration files<\/strong> of a package on your machine that are <strong>.deb<\/strong> file then you will have to use an option. Normally option <strong>(-P) <\/strong>is used for purging an installed package. Now follow the steps below to see how this works.<\/p>\n<ol>\n<li><strong>\u00a0<\/strong>Open your <strong>Ubuntu terminal<\/strong>.<\/li>\n<li>\u00a0 Write the following command.\n<pre><code class=\"language-bash\" data-line=\"\">sudo dpkg -P cowsay<\/code><\/pre>\n<\/li>\n<li>\u00a0 Now, press the <strong>ENTER <\/strong>button.<\/li>\n<li>\u00a0 Now, give your user password and press <strong>ENTER <\/strong>button.This command removes all the configuration files.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2804 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9.png\" alt=\"Purging file\" width=\"825\" height=\"98\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-300x36.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-1024x122.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-766x91.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-1536x182.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-2048x243.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-1263x150.png 1263w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-100x12.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/dpkg-in-linux-9-788x93.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/li>\n<\/ol>\n<p>This command doesn\u2019t remove the configuration files. For removing the configuration files you will have to use purge, which I will show you in the next section.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"DPKG_vs_APT\"><\/span>DPKG vs APT<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\"><strong>Apt <\/strong>is more modern and user-friendly than the <strong>dpkg<\/strong>. <strong>APT <\/strong>stands for <a href=\"https:\/\/linuxsimply.com\/apt-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>Advanced Package Tool<\/strong><\/a> on the other hand <strong>dpkg <\/strong>stands for <strong>Debian Package Manager<\/strong>. Both of these tools can be used for installing, removing, or updating software packages in the system. <strong>Apt <\/strong>has some advantages over <strong>dpkg <\/strong>like installing from a remote location. <strong>Apt <\/strong>can also resolve dependencies which <strong>dpkg <\/strong>can\u2019t do.<\/p>\n<div class=\"su-note\"  style=\"border-color:#e5e5e5;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#ffffff;border-color:#ffffff;color:#333333;\">\n<p style=\"text-align: justify;\">Look into the article: <a href=\"https:\/\/linuxsimply.com\/linux-basics\/package-management\/package-manager-comparison\/dpkg-vs-apt\/\" target=\"_blank\" rel=\"noopener\"><strong>DPKG VS APT<\/strong><\/a> for a detailed overview.<\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, I have tried to explain how <strong>dpkg <\/strong>works, some useful <strong>dpkg command lines<\/strong>, and the difference between <strong>dpkg and apt<\/strong>. I tried to make it as simple as possible, considering how hard it is to learn to use the command line for beginners. So after reading this article, you should be able to use <strong>dpkg <\/strong>properly and without facing many difficulties.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"People_Also_Ask\"><\/span>People Also Ask<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Why_use_dpkg\"><\/span>Why use dpkg?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>dpkg<\/strong> is used in Linux for <strong>managing<\/strong> <strong>Debian<\/strong> <strong>packages<\/strong>. It allows installation, removal, and configuration of software packages on Debian-based systems, such as Ubuntu. While dpkg is effective for basic package management, higher-level tools like <strong>apt<\/strong> are often preferred for handling dependencies more efficiently.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_is_apt_used\"><\/span>Why is apt used?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>apt<\/strong> in Debian-based Linux distributions simplifies package management by automating dependency resolution, providing a user-friendly interface, and managing a centralized package repository for efficient software installation, removal, and updates.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_dpkg_vs_apt\"><\/span>What is dpkg vs apt?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>dpkg<\/strong> is a low-level package manager for Debian-based Linux, handling individual packages, while apt is a higher-level tool that simplifies package management by automating tasks like dependency resolution and providing a user-friendly interface. They often work together, with apt utilizing dpkg for package handling.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_use_sudo_with_apt\"><\/span>Why use sudo with apt?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Using <strong>sudo with apt<\/strong> is necessary to acquire administrative privileges, enabling the execution of commands that involve system-level operations, such as installing or updating software packages.<\/p>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"Why use dpkg?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"dpkg is used in Linux for managing Debian packages. It allows installation, removal, and configuration of software packages on Debian-based systems, such as Ubuntu. While dpkg is effective for basic package management, higher-level tools like apt are often preferred for handling dependencies more efficiently.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Why is apt used?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"apt is used in Debian-based Linux distributions to simplify package management by automating dependency resolution, providing a user-friendly interface, and managing a centralized package repository for efficient software installation, removal, and updates.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is dpkg vs apt?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"dpkg is a low-level package manager for Debian-based Linux, handling individual packages, while apt is a higher-level tool that simplifies package management by automating tasks like dependency resolution and providing a user-friendly interface. They often work together, with apt utilizing dpkg for package handling.\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"Why use sudo with apt?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"Using sudo with apt is necessary to acquire administrative privileges, enabling the execution of commands that involve system-level operations, such as installing or updating software packages.\"\n    }\n  }]\n}\n<\/script><\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/apt-in-linux\/\" target=\"_blank\" rel=\"noopener\">What is APT in Linux? [Installation, Usage &amp; More]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/what-is-package-manager-in-linux\/\" target=\"_blank\" rel=\"noopener\">What is Package Manager in Linux?[Install, Update &amp; Manage]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;2784&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;What is DPKG in Linux? [With Practical Applications]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>DPKG is an abbreviation for Debian Package Manager. DPKG in Linux is useful for downloading, removing, or upgrading software packages. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"What is DPKG in Linux? [With Practical Applications]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/#more-2784\" aria-label=\"Read more about What is DPKG in Linux? [With Practical Applications]\">Read more<\/a><\/p>\n","protected":false},"author":314887,"featured_media":2806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[18],"class_list":["post-2784","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-glossary","tag-linux-terminology","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is DPKG in Linux? [With Practical Applications] - LinuxSimply<\/title>\n<meta name=\"description\" content=\"The dpkg command in Linux is the predecessor of the command apt. this command is useful for installing or removing packages in the system.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is DPKG in Linux? [With Practical Applications] - LinuxSimply\" \/>\n<meta property=\"og:description\" content=\"The dpkg command in Linux is the predecessor of the command apt. this command is useful for installing or removing packages in the system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/dpkg-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rafsanzn\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-02T10:46:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-31T06:06:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/What-is-GIMP-3-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rafsan Zani\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rafsan Zani\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/\"},\"author\":{\"name\":\"Rafsan Zani\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/8e7276de56e31a832a5d020c11c45e19\"},\"headline\":\"What is DPKG in Linux? [With Practical Applications]\",\"datePublished\":\"2023-01-02T10:46:06+00:00\",\"dateModified\":\"2023-12-31T06:06:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/\"},\"wordCount\":1328,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-GIMP-3-1.png\",\"keywords\":[\"linux terminology\"],\"articleSection\":[\"Linux Glossary\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/\",\"name\":\"What is DPKG in Linux? [With Practical Applications] - LinuxSimply\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-GIMP-3-1.png\",\"datePublished\":\"2023-01-02T10:46:06+00:00\",\"dateModified\":\"2023-12-31T06:06:46+00:00\",\"description\":\"The dpkg command in Linux is the predecessor of the command apt. this command is useful for installing or removing packages in the system.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-GIMP-3-1.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-GIMP-3-1.png\",\"width\":400,\"height\":400,\"caption\":\"DPKG in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/dpkg-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is DPKG in Linux? [With Practical Applications]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/8e7276de56e31a832a5d020c11c45e19\",\"name\":\"Rafsan Zani\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Rafsan-Zani-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Rafsan-Zani-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Md.-Rafsan-Zani-II-96x96.png\",\"caption\":\"Rafsan Zani\"},\"description\":\"Hello, I\u2019m Md. Rafsan Zani. I have recently completed my Undergraduate from the Bangladesh University of Engineering and Technology (BUET). Currently, I\u2019m pursuing higher studies abroad. I\u2019m really interested in computer science and would like to learn a lot about the wonderful world of computers. Currently, I\u2019m working as a Linux Content Developer Executive and find Linux really interesting. I certainly would like to learn more about Linux and implement them in my future studies. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/rafsanzn\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/md-rafsan-zani-072838168\\\/\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/rafsan-zani\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is DPKG in Linux? [With Practical Applications] - LinuxSimply","description":"The dpkg command in Linux is the predecessor of the command apt. this command is useful for installing or removing packages in the system.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/dpkg-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"What is DPKG in Linux? [With Practical Applications] - LinuxSimply","og_description":"The dpkg command in Linux is the predecessor of the command apt. this command is useful for installing or removing packages in the system.","og_url":"https:\/\/linuxsimply.com\/dpkg-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/rafsanzn\/","article_published_time":"2023-01-02T10:46:06+00:00","article_modified_time":"2023-12-31T06:06:46+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/What-is-GIMP-3-1.png","type":"image\/png"}],"author":"Rafsan Zani","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rafsan Zani","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/"},"author":{"name":"Rafsan Zani","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/8e7276de56e31a832a5d020c11c45e19"},"headline":"What is DPKG in Linux? [With Practical Applications]","datePublished":"2023-01-02T10:46:06+00:00","dateModified":"2023-12-31T06:06:46+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/"},"wordCount":1328,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/What-is-GIMP-3-1.png","keywords":["linux terminology"],"articleSection":["Linux Glossary"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/dpkg-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/","url":"https:\/\/linuxsimply.com\/dpkg-in-linux\/","name":"What is DPKG in Linux? [With Practical Applications] - LinuxSimply","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/What-is-GIMP-3-1.png","datePublished":"2023-01-02T10:46:06+00:00","dateModified":"2023-12-31T06:06:46+00:00","description":"The dpkg command in Linux is the predecessor of the command apt. this command is useful for installing or removing packages in the system.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/dpkg-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/What-is-GIMP-3-1.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/What-is-GIMP-3-1.png","width":400,"height":400,"caption":"DPKG in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/dpkg-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"What is DPKG in Linux? [With Practical Applications]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/8e7276de56e31a832a5d020c11c45e19","name":"Rafsan Zani","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Rafsan-Zani-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Rafsan-Zani-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Md.-Rafsan-Zani-II-96x96.png","caption":"Rafsan Zani"},"description":"Hello, I\u2019m Md. Rafsan Zani. I have recently completed my Undergraduate from the Bangladesh University of Engineering and Technology (BUET). Currently, I\u2019m pursuing higher studies abroad. I\u2019m really interested in computer science and would like to learn a lot about the wonderful world of computers. Currently, I\u2019m working as a Linux Content Developer Executive and find Linux really interesting. I certainly would like to learn more about Linux and implement them in my future studies. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/rafsanzn\/","https:\/\/www.linkedin.com\/in\/md-rafsan-zani-072838168\/"],"url":"https:\/\/linuxsimply.com\/author\/rafsan-zani\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/2784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314887"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=2784"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/2784\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/2806"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=2784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=2784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=2784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}