{"id":12953,"date":"2019-03-29T05:23:39","date_gmt":"2019-03-29T05:23:39","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12953"},"modified":"2019-03-29T05:23:39","modified_gmt":"2019-03-29T05:23:39","slug":"how-to-reconfigure-installed-package-in-ubuntu-and-debian","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/how-to-reconfigure-installed-package-in-ubuntu-and-debian\/","title":{"rendered":"How to Reconfigure Installed Package in Ubuntu and Debian"},"content":{"rendered":"<p><strong>dpkg-reconfigure<\/strong>\u00a0is a powerful command line tool used to reconfigure an already installed package. It is one of the several tools offered under\u00a0<a href=\"https:\/\/www.tecmint.com\/dpkg-command-examples\/\" target=\"_blank\" rel=\"noopener\">dpkg<\/a>\u00a0\u2013 the core package management system on Debian\/Ubuntu Linux. It works in conjunction with\u00a0<strong>debconf<\/strong>, the configuration system for Debian packages. Debconf registers the configuration of all installed packages on your system.<\/p>\n<p>This tool can actually be used to reconfigure an entire Ubuntu or Debian system installation. Simply provide the name(s) of package(s) to reconfigure, and it will ask a number of configuration questions, in the same way when the package was initially installed on your system.<\/p>\n<p>It can allow you to retrieve the settings of an installed package, as well as change the current settings of that package as recorded in decconf. A common category of packages you can reconfigure are those whose configurations are determined by questions in the package installation script, usually shown via a graphical interface during the package installation process, for example\u00a0<strong>phpmyadmin<\/strong>.<\/p>\n<h3>View Configurations Of Installed Package<\/h3>\n<p>To view current configurations of an installed package \u201c<strong>phpmyadmin<\/strong>\u201c, use the\u00a0<strong>debconf-show<\/strong>\u00a0utility as shown.<\/p>\n<pre>$ sudo debconf-show phpmyadmin\r\n<\/pre>\n<div id=\"attachment_30528\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/View-Installed-Package-Configurations.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30528\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/View-Installed-Package-Configurations.png\" alt=\"View Installed Package Configurations\" width=\"632\" height=\"572\" aria-describedby=\"caption-attachment-30528\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30528\" class=\"wp-caption-text\">View Installed Package Configurations<\/p>\n<\/div>\n<h3>Reconfigure Installed Package in Debian and Ubuntu<\/h3>\n<p>If you have already installed a package, for instance\u00a0<strong>phpmyadmin<\/strong>, you can reconfigure it by passing the package name to\u00a0<strong>dpkg-reconfigure<\/strong>\u00a0as shown.<\/p>\n<pre>$ sudo dpkg-reconfigure phpmyadmin\r\n<\/pre>\n<p>Once you have run the command above, you should be able to start reconfiguring\u00a0<strong>phpmyadmin<\/strong>\u00a0as shown in the following screenshot. You will be asked a series of questions, select the settings you want and complete the process.<\/p>\n<div id=\"attachment_30529\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Reinstall-Database-for-PhpMyAdmin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30529\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Reinstall-Database-for-PhpMyAdmin.png\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Reinstall-Database-for-PhpMyAdmin.png 852w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Reinstall-Database-for-PhpMyAdmin-768x516.png 768w\" alt=\"Reinstall Database for PhpMyAdmin\" width=\"852\" height=\"572\" aria-describedby=\"caption-attachment-30529\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30529\" class=\"wp-caption-text\">Reinstall Database for PhpMyAdmin<\/p>\n<\/div>\n<div id=\"attachment_30530\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Configure-Web-Server-for-PhpMyAdmin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30530\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Configure-Web-Server-for-PhpMyAdmin.png\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Configure-Web-Server-for-PhpMyAdmin.png 852w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Configure-Web-Server-for-PhpMyAdmin-768x447.png 768w\" alt=\"Configure Web Server for PhpMyAdmin\" width=\"852\" height=\"496\" aria-describedby=\"caption-attachment-30530\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30530\" class=\"wp-caption-text\">Configure Web Server for PhpMyAdmin<\/p>\n<\/div>\n<p>When the\u00a0<strong>phpmyadmin<\/strong>\u00a0reconfiguration process is done, you will see the some useful information concerning the new package settings as shown in the following screenshot.<\/p>\n<div id=\"attachment_30531\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/PhpMyAdmin-Information.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30531\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/PhpMyAdmin-Information.png\" alt=\"PhpMyAdmin Information\" width=\"732\" height=\"154\" aria-describedby=\"caption-attachment-30531\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30531\" class=\"wp-caption-text\">PhpMyAdmin Information<\/p>\n<\/div>\n<p>There are some useful options which allow you to change its default behavior, we will explain some of the practically useful ones, as follows.<\/p>\n<p>The\u00a0<code>-f<\/code>\u00a0flag is used to choose the frontend (such as dailog, readline, Gnome, Kde, Editor or noninteractive) to use.<\/p>\n<pre>$ sudo dpkg-reconfigure -f readline phpmyadmin\r\n<\/pre>\n<p>You can permanently change the default frontend via the\u00a0<strong>debconf<\/strong>, by running the following command.<\/p>\n<pre>$ sudo dpkg-reconfigure debconf\r\n<\/pre>\n<p>Use the\u00a0<strong>Up<\/strong>\u00a0and\u00a0<strong>Down<\/strong>\u00a0keys to select an option, and press the\u00a0<strong>TAB<\/strong>\u00a0key to choose\u00a0<strong>Ok<\/strong>\u00a0and press\u00a0<strong>Enter<\/strong>.<\/p>\n<div id=\"attachment_30532\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Change-dpkg-reconfigure-Frontend.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30532\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Change-dpkg-reconfigure-Frontend.png\" alt=\"Change dpkg-reconfigure Frontend\" width=\"732\" height=\"515\" aria-describedby=\"caption-attachment-30532\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30532\" class=\"wp-caption-text\">Change dpkg-reconfigure Frontend<\/p>\n<\/div>\n<p>Also choose which questions to ignore according to priority level, as shown in the screenshot and press\u00a0<strong>Enter<\/strong>.<\/p>\n<div id=\"attachment_30533\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Change-Debconf-Priority.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30533\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/09\/Change-Debconf-Priority.png\" alt=\"Change Debconf Priority\" width=\"732\" height=\"515\" aria-describedby=\"caption-attachment-30533\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30533\" class=\"wp-caption-text\">Change Debconf Priority<\/p>\n<\/div>\n<p>To specify the minimum priority of questions that will be displayed, directly from the command line, use the\u00a0<code>-p<\/code>option.<\/p>\n<pre>$ sudo dpkg-reconfigure -p critical phpmyadmin\r\n<\/pre>\n<p>Some packages may be in an inconsistent or broken state, in such a case, you can use the\u00a0<code>-f<\/code>\u00a0flag to force\u00a0<strong>dpkg-reconfigure<\/strong>\u00a0to reconfigure a package. Remember to use this flag with caution!<\/p>\n<pre>$ sudo dpkg-reconfigure -f package_name\r\n<\/pre>\n<p>For more information, see the\u00a0<strong>dpkg-reconfigure<\/strong>\u00a0man page.<\/p>\n<pre>$ man dpkg-reconfigure\r\n<\/pre>\n<p>That\u2019s it for now! If you have any questions concerning how to use\u00a0<strong>dpkg-reconfigure<\/strong>, or any additional thoughts to share, reach us via the comments section below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/dpkg-reconfigure-installed-package-in-ubuntu-debian\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>dpkg-reconfigure\u00a0is a powerful command line tool used to reconfigure an already installed package. It is one of the several tools offered under\u00a0dpkg\u00a0\u2013 the core package management system on Debian\/Ubuntu Linux. It works in conjunction with\u00a0debconf, the configuration system for Debian packages. Debconf registers the configuration of all installed packages on your system. This tool can &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/how-to-reconfigure-installed-package-in-ubuntu-and-debian\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Reconfigure Installed Package in Ubuntu and Debian&#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-12953","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\/12953","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=12953"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12953\/revisions"}],"predecessor-version":[{"id":12954,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12953\/revisions\/12954"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}