{"id":1535,"date":"2016-05-16T10:00:44","date_gmt":"2016-05-16T09:00:44","guid":{"rendered":"http:\/\/slave27.local\/kb\/?p=1535"},"modified":"2016-05-16T10:00:44","modified_gmt":"2016-05-16T09:00:44","slug":"software-update-scripts","status":"publish","type":"post","link":"https:\/\/andy.teknostatik.co.uk\/kb\/2016\/05\/16\/software-update-scripts\/","title":{"rendered":"Software update scripts"},"content":{"rendered":"<h2>Mac OS X<\/h2>\n<pre><code>#!\/bin\/bash\necho \"updateall v.1.1 for OS X. This software will upgrade all your Apple\/Homebrew software.\"\n# Run this as a normal user. Your admin password will be asked for if required.\n# Update all Apple software (requires admin password at this point)\nsudo softwareupdate -i -a\n# Update all software installed via Homebrew (as a normal user)\nbrew update\n# Update all other software\nmas upgrade\necho \"The script has now finished running.\"\n<\/code><\/pre>\n<h2>Ubuntu<\/h2>\n<pre><code>#!\/bin\/bash\necho \"updateall v.1.2 for Ubuntu\"\n#Run this as a normal user. Your admin password will be asked for if required.\nsudo apt update\nsudo apt upgrade -y\nsudo apt full-upgrade -y\nsudo apt-get clean -y\nsudo apt-get autoclean -y\nsudo apt-get autoremove -y\n# comment the following out in systems older than 16.04\nsudo purge-old-kernels -y\necho \"The script has now finished running.\"\n<\/code><\/pre>\n<h2>Debian<\/h2>\n<pre><code>#!\/bin\/bash\necho \"updateall v.1.0 for Debian.\"\n#Run this as root.\napt-get update\napt-get upgrade -y\napt-get dist-upgrade -y\napt-get clean -y\napt-get autoclean -y\napt-get autoremove -y\necho \"The script has now finished running.\"\n<\/code><\/pre>\n<h2>Raspian<\/h2>\n<pre><code>#!\/bin\/bash\necho \"updateall v.1.2 for Raspian\"\n#Run this as a normal user. Your admin password will be asked for if required.\nsudo apt-get update\nsudo apt-get upgrade -y\nsudo apt-get dist-upgrade -y\nsudo apt-get clean -y\nsudo apt-get autoclean -y\nsudo apt-get autoremove -y\nsudo rpi-update\necho \"The script has now finished running.\"\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Mac OS X #!\/bin\/bash echo &#8220;updateall v.1.1 for OS X. This software will upgrade all your Apple\/Homebrew software.&#8221; # Run this as a normal user. Your admin password will be asked for if required. # Update all Apple software (requires admin password at this point) sudo softwareupdate -i -a # Update all software installed via &#8230; <a title=\"Software update scripts\" class=\"read-more\" href=\"https:\/\/andy.teknostatik.co.uk\/kb\/2016\/05\/16\/software-update-scripts\/\" aria-label=\"Read more about Software update scripts\">Read more<\/a><\/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,6,7,8],"tags":[],"class_list":["post-1535","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-mac-os-x","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\/1535","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=1535"}],"version-history":[{"count":0,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1535\/revisions"}],"wp:attachment":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/media?parent=1535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/categories?post=1535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/tags?post=1535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}