{"id":14,"date":"2008-07-29T19:10:12","date_gmt":"2008-07-29T23:10:12","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=14"},"modified":"2008-07-29T19:10:12","modified_gmt":"2008-07-29T23:10:12","slug":"using-dpkg-in-ubuntu-and-debian","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2008\/07\/29\/using-dpkg-in-ubuntu-and-debian\/","title":{"rendered":"Using dpkg in Ubuntu and Debian"},"content":{"rendered":"<p>For those of you who are stuck in an command line (bash) environment with no access to Synaptic, here are 9 useful and clear tips to help you to get the hang of package management with dpkg in the <a rel=\"nofollow\" href=\"http:\/\/ubuntu.com\">Ubuntu Linux<\/a> and <a rel=\"nofollow\" href=\"http:\/\/debian.org\">Debian Linux<\/a> distributions.<\/p>\n<ol>\n<li><strong>dpkg &#8211;install (or dpkg -i)<\/strong> &#8211; Installs the specified package. Example:<br \/>\n<code>sudo dpkg --install <em>package.deb<\/em><\/code><\/li>\n<li><strong>dpkg &#8211;remove (or dpkg -r)<\/strong> &#8211; Removes the specified package. Example:<code><br \/>\nsudo dpkg --remove <em>package<\/em><\/code><\/li>\n<li><strong>dpkg &#8211;remove &#8211;purge (or dpkg -r -P)<\/strong> &#8211; Removes the specified package and purges all configuration data. Example:<br \/>\n<code>sudo dpkg --remove --purge <em>package<\/em><\/code><\/li>\n<li><strong>dpkg &#8211;unpack directory\/ <\/strong>&#8211; Unpacks the package&#8217;s contents into directory\/. Example:<br \/>\n<code>dpkg --unpack <em>package.deb<\/em> directory\/<\/code><\/li>\n<li><strong>dpkg &#8211;listfiles (or dpkg -L) <\/strong>&#8211; Lists the files that the specified package contains. Example:<br \/>\n<code>dpkg --listfiles <em>package<\/em><\/code><\/li>\n<li><strong>dpkg &#8211;list (or dpkg -l)<\/strong> &#8211; List the package details in great detail. Example:<br \/>\n<code>dpkg --list <em>package<\/em><\/code><\/li>\n<li><strong>dpkg &#8211;status (or dpkg -s) <\/strong>&#8211; Lists the package status in detail, along with version, description and architecture information. Example:<br \/>\n<code>dpkg --status <em>package<\/em><\/code><\/li>\n<li><strong>dpkg &#8211;root=\/directory &#8211;install (or dpkg &#8211;root=\/directory -i)<\/strong> &#8211; Install the package into \/directory other than root. Example:<br \/>\n<code>sudo dpkg --root=<em>\/directory<\/em> --install <em>package<\/em><\/code><\/li>\n<li><strong>dpkg &#8211;simulate command (or dpkg &#8211;dry-run)<\/strong> &#8211; Simulates what would happen if you did run the command <em>command <\/em>for real. Example:<br \/>\n<code>sudo dpkg --simulate <em>command<\/em><\/code><\/li>\n<\/ol>\n<p>So there you have it, 9 simple yet very effective tips to package management with dpkg on Ubuntu and Debian. If this article helped you, please help us spread the word!<\/p>","protected":false},"excerpt":{"rendered":"<p>For those of you who are stuck in an command line (bash) environment with no access to Synaptic, here are 9 useful and clear tips to help you to get the hang of package management with dpkg in the Ubuntu Linux and Debian Linux distributions. dpkg &#8211;install (or dpkg -i) &#8211; Installs the specified package. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[37,29,35,862,36,28],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/14"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}