{"id":1668,"date":"2016-09-25T09:37:28","date_gmt":"2016-09-25T08:37:28","guid":{"rendered":"http:\/\/slave27.local\/kb\/?p=1668"},"modified":"2016-09-25T09:37:28","modified_gmt":"2016-09-25T08:37:28","slug":"non-interactive-debian-upgrade-script","status":"publish","type":"post","link":"https:\/\/andy.teknostatik.co.uk\/kb\/2016\/09\/25\/non-interactive-debian-upgrade-script\/","title":{"rendered":"Non-interactive Debian upgrade script"},"content":{"rendered":"<p>This could be run as a cron job on any Debian based system (tested on Debian, Ubuntu, Raspian).<\/p>\n<pre><code>#!\/bin\/bash\nexport DEBIAN_FRONTEND=noninteractive\nyes '' | apt-get -y -o DPkg::options::=\"--force-confdef\" -o DPkg::options::=\"--force-confold\" dist-upgrade\n<\/code><\/pre>\n<p>See <a href=\"http:\/\/slave27.local\/debian-handbook\/sect.automatic-upgrades.html\">http:\/\/slave27.local\/debian-handbook\/sect.automatic-upgrades.html<\/a> for more details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This could be run as a cron job on any Debian based system (tested on Debian, Ubuntu, Raspian). #!\/bin\/bash export DEBIAN_FRONTEND=noninteractive yes &#8221; | apt-get -y -o DPkg::options::=&#8221;&#8211;force-confdef&#8221; -o DPkg::options::=&#8221;&#8211;force-confold&#8221; dist-upgrade See http:\/\/slave27.local\/debian-handbook\/sect.automatic-upgrades.html for more details.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","_share_on_mastodon":"0"},"categories":[3,5,7,8],"tags":[],"class_list":["post-1668","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-raspberry-pi","category-ubuntu"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/comments?post=1668"}],"version-history":[{"count":0,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1668\/revisions"}],"wp:attachment":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/media?parent=1668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/categories?post=1668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/tags?post=1668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}