{"id":14165,"date":"2018-07-20T05:00:25","date_gmt":"2018-07-20T12:00:25","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/?p=14165"},"modified":"2019-02-18T12:37:47","modified_gmt":"2019-02-18T19:37:47","slug":"powershell-core-now-available-as-a-snap-package","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/powershell-core-now-available-as-a-snap-package\/","title":{"rendered":"PowerShell Core now available as a Snap package"},"content":{"rendered":"<div class=\"markdown-body\">\n<p>The goal of PowerShell Core is to be the ubiquitous language for managing your assets in the hybrid cloud. That&#8217;s why we&#8217;ve worked to make it available on many operating systems, architectures, and flavors of Linux, macOS, and Windows as possible.<\/p>\n<p>Today, we&#8217;re happy to announce an addition to our support matrix: <a href=\"https:\/\/snapcraft.io\/powershell\">PowerShell Core is now available as a Snap package<\/a>.<\/p>\n<h2>What&#8217;s a Snap package?<\/h2>\n<p><a href=\"https:\/\/snapcraft.io\">Snap packages<\/a>\u00a0are containerized applications that can be installed on many Linux distributions. For more info, <a href=\"https:\/\/blog.ubuntu.com\/2018\/07\/20\/powershell-launches-as-a-snap?_ga=2.56632170.1368421086.1531764112-1589195767.1529653827\">check out Canonical&#8217;s blog on our Snap announcement.<\/a><\/p>\n<h2>What does this do for me?<\/h2>\n<p>Snap packages have a number of benefits over traditional Linux software packages (e.g. DEB or RPM):<\/p>\n<ul>\n<li>Snap packages carry all of their own dependencies, so you don&#8217;t need to worry about the specific versions of shared libraries installed on your machine<\/li>\n<li>Snap packages can be installed without giving the publisher root access to the host<\/li>\n<li>Snap packages are &#8220;safe to run&#8221; as they don&#8217;t interact with other applications or system files without your permission<\/li>\n<li>Updates to Snaps happen automatically, and include the delta of changes between updates<\/li>\n<\/ul>\n<h2>How do I get it?<\/h2>\n<p>First, you need to make sure you&#8217;ve <a href=\"https:\/\/docs.snapcraft.io\/core\/install\" rel=\"nofollow\">installed snapd<\/a>.<\/p>\n<p>Then, just run:<\/p>\n<div class=\"highlight highlight-source-shell\">\n<pre>snap install powershell --classic<\/pre>\n<\/div>\n<p>Now you&#8217;ve got PowerShell Core installed as a Snap! Simply start <code>pwsh<\/code> from your favorite terminal, and you&#8217;re in!<\/p>\n<h2>Interested in our latest preview bits?<\/h2>\n<p>If you live on the bleeding edge and want to grab <a href=\"https:\/\/snapcraft.io\/powershell-preview\">the latest PowerShell preview<\/a>, just install <code>powershell-preview<\/code> instead of <code>powershell<\/code>:<\/p>\n<div class=\"highlight highlight-source-shell\">\n<pre>snap install powershell-preview --classic<\/pre>\n<\/div>\n<p>Now you can launch PowerShell Core&#8217;s latest preview as a Snap by launching <code>pwsh-preview<\/code> from your terminal.<\/p>\n<h2>What about your other Linux packages?<\/h2>\n<p>We will continue to support our &#8220;traditional&#8221; standalone Linux packages that ship on <a href=\"https:\/\/packages.microsoft.com\/\" rel=\"nofollow\">https:\/\/packages.microsoft.com\/<\/a>, and we have no plans to discontinue that support.<\/p>\n<p>However, we highly encourage you to check out the Snap package as a way to simplify your updates and reduce the permission set required for installation.<\/p>\n<p>Happy Snapping!<\/p>\n<p>Joey Aiello\nPM, PowerShell<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The goal of PowerShell Core is to be the ubiquitous language for managing your assets in the hybrid cloud. That&#8217;s why we&#8217;ve worked to make it available on many operating systems, architectures, and flavors of Linux, macOS, and Windows as possible. Today, we&#8217;re happy to announce an addition to our support matrix: PowerShell Core is [&hellip;]<\/p>\n","protected":false},"author":657,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>The goal of PowerShell Core is to be the ubiquitous language for managing your assets in the hybrid cloud. That&#8217;s why we&#8217;ve worked to make it available on many operating systems, architectures, and flavors of Linux, macOS, and Windows as possible. Today, we&#8217;re happy to announce an addition to our support matrix: PowerShell Core is [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/14165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/657"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=14165"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/14165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=14165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=14165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=14165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}