{"id":909,"date":"2018-10-19T00:36:22","date_gmt":"2018-10-19T00:36:22","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=909"},"modified":"2018-10-22T22:52:50","modified_gmt":"2018-10-22T22:52:50","slug":"what-is-the-difference-between-apt-get-remove-and-purge-and-autoremove-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/19\/what-is-the-difference-between-apt-get-remove-and-purge-and-autoremove-in-ubuntu\/","title":{"rendered":"what is the difference between apt-get remove and purge and autoremove in ubuntu?"},"content":{"rendered":"<h3>apt-get remove vs purge vs autoremove<\/h3>\n<p>Let&#8217;s explain this by taking wget package as the one to be removed.<\/p>\n<p>remove<\/p>\n<p>apt-get remove wget<\/p>\n<p>This removes the wget binaries, but it&#8217;s configuration files and installed dependencies will remain in the system.<\/p>\n<p>purge<\/p>\n<p>apt-get purge wget<\/p>\n<p>This removes the package as well as its configuration files. But the dependencies will remain in the system. However, configuration files in the home directory won&#8217;t get removed.<\/p>\n<p>This command is same as using &#8211;purge option with the above remove command.<\/p>\n<p>autoremove<\/p>\n<p>apt-get autoremove wget<\/p>\n<p>This will remove the package as well as its dependencies, if those dependencies aren&#8217;t used by other packages.<\/p>\n<p>apt-get autoremove<\/p>\n<p>If the package name is not specified with autoremove, it will remove all the unused dependencies in the system.<\/p>\n<p><a href=\"https:\/\/www.linuxforfreshers.com\/2018\/02\/what-is-difference-between-apt-get.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>apt-get remove vs purge vs autoremove Let&#8217;s explain this by taking wget package as the one to be removed. remove apt-get remove wget This removes the wget binaries, but it&#8217;s configuration files and installed dependencies will remain in the system. purge apt-get purge wget This removes the package as well as its configuration files. But &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/19\/what-is-the-difference-between-apt-get-remove-and-purge-and-autoremove-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;what is the difference between apt-get remove and purge and autoremove in ubuntu?&#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-909","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\/909","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=909"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/909\/revisions"}],"predecessor-version":[{"id":1195,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/909\/revisions\/1195"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}