{"id":457,"date":"2019-09-04T11:48:11","date_gmt":"2019-09-04T01:48:11","guid":{"rendered":"https:\/\/blog.hegars.com\/?p=457"},"modified":"2019-09-04T11:56:36","modified_gmt":"2019-09-04T01:56:36","slug":"microsoft-powershell-on-linux","status":"publish","type":"post","link":"https:\/\/blog.hegars.com\/?p=457","title":{"rendered":"Microsoft Powershell on Linux"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"897\" height=\"383\" src=\"https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/09\/image.png\" alt=\"\" class=\"wp-image-458\" srcset=\"https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/09\/image.png 897w, https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/09\/image-300x128.png 300w, https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/09\/image-768x328.png 768w\" sizes=\"(max-width: 897px) 100vw, 897px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/aka.ms\/pscore6\">https:\/\/aka.ms\/pscore6<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/aka.ms\/pscore6-docs\">https:\/\/aka.ms\/pscore6-docs<\/a><\/p>\n\n\n\n<p> # Install system components <br>sudo apt-get update <br>sudo apt-get install curl gnupg apt-transport-https <br><br># Import the public repository GPG keys curl https:\/\/packages.microsoft.com\/keys\/microsoft.asc | sudo apt-key add &#8211; <br><br># Register the Microsoft Product feed sudo sh -c &#8216;echo &#8220;deb [arch=amd64] https:\/\/packages.microsoft.com\/repos\/microsoft-debian-stretch-prod stretch main&#8221; &gt; \/etc\/apt\/sources.list.d\/microsoft.list&#8217; <br><br># Update the list of products <br>sudo apt-get update <br><br># Install PowerShell <br>sudo apt-get install -y powershell <br><br># Start PowerShell <br>pwsh <\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/aka.ms\/pscore6 https:\/\/aka.ms\/pscore6-docs # Install system components sudo apt-get update sudo apt-get install curl gnupg apt-transport-https # Import the public repository GPG keys curl https:\/\/packages.microsoft.com\/keys\/microsoft.asc | sudo apt-key add &#8211; # Register the Microsoft Product feed sudo sh -c &#8216;echo &#8220;deb [arch=amd64] https:\/\/packages.microsoft.com\/repos\/microsoft-debian-stretch-prod stretch main&#8221; &gt; \/etc\/apt\/sources.list.d\/microsoft.list&#8217; # Update the list of products sudo apt-get update [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[12,4,6,10,8],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/457"}],"collection":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=457"}],"version-history":[{"count":2,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/457\/revisions"}],"predecessor-version":[{"id":460,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/457\/revisions\/460"}],"wp:attachment":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}