{"id":7968,"date":"2018-07-21T16:30:49","date_gmt":"2018-07-21T16:30:49","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=7968"},"modified":"2018-07-21T16:30:49","modified_gmt":"2018-07-21T16:30:49","slug":"install-powershell-snap-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2018\/07\/install-powershell-snap-ubuntu-18-04\/","title":{"rendered":"Install PowerShell Easily via Snap in Ubuntu 18.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-icon.png\" alt=\"\" width=\"245\" height=\"250\" class=\"aligncenter size-full wp-image-7969\" \/><\/p>\n<p>Microsoft PowerShell Core now can be easily installed in Ubuntu 18.04, Ubuntu 16.04 via Snap package.<\/p>\n<p><b>PowerShell<\/b> is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.<\/p>\n<p>It was announced on <a href=\"https:\/\/blogs.msdn.microsoft.com\/powershell\/2018\/07\/20\/powershell-core-now-available-as-a-snap-package\/\" target=\"_blank\">MSDN blogs<\/a>:<\/p>\n<ul>\n&#8220;<i>The goal of PowerShell Core is to be the ubiquitous language for managing your assets in the hybrid cloud. That\u2019s why we\u2019ve worked to make it available on many operating systems, architectures, and flavors of Linux, macOS, and Windows as possible.<\/p>\n<p>Today, we\u2019re happy to announce an addition to our support matrix: PowerShell Core is now available as a Snap package.<\/i>&#8220;<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-ubuntu.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-ubuntu-600x370.jpg\" alt=\"\" width=\"600\" height=\"370\" class=\"aligncenter size-large wp-image-7970\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-ubuntu-600x370.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-ubuntu-450x278.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-ubuntu-768x474.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-ubuntu.jpg 1079w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>How to Install PowerShell in Ubuntu via Snap:<\/h4>\n<p>Snap packages are containerized applications that can be installed on many Linux distributions. Snap bundles its dependencies in a single package and updates itself automatically once new version is published.<\/p>\n<p>To install PowerShell snap, open <b>Ubuntu Software<\/b>, search for and install PowerShell Core:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-softwarecenter-600x373.jpg\" alt=\"\" width=\"600\" height=\"373\" class=\"aligncenter size-large wp-image-7971\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-softwarecenter-600x373.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-softwarecenter-450x280.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-softwarecenter-768x478.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-softwarecenter.jpg 935w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>or open terminal (Ctrl+Alt+T) and install it by running command:<\/p>\n<pre style=\"border:none;\">snap install powershell --classic<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-snap-600x87.jpg\" alt=\"\" width=\"600\" height=\"87\" class=\"aligncenter size-large wp-image-7972\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-snap-600x87.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-snap-450x65.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2018\/07\/powershell-snap.jpg 747w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>NOTE for Ubuntu 16.04<\/b> users first time installing a snap package, install <code>snapd<\/code> before getting started:<\/p>\n<pre style=\"border:none;\">sudo apt install snapd snapd-xdg-open<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg-600x89.jpg\" alt=\"\" width=\"600\" height=\"89\" class=\"aligncenter size-large wp-image-6976\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg-600x89.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg-450x67.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/07\/install-snapd-xdg.jpg 709w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Microsoft PowerShell Core now can be easily installed in Ubuntu 18.04, Ubuntu 16.04 via Snap package. PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language. It was announced on MSDN blogs: &#8220;The goal of PowerShell Core is to be the ubiquitous language for managing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,6],"tags":[1558],"class_list":["post-7968","post","type-post","status-publish","format-standard","hentry","category-howtos","category-news","tag-powershell"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=7968"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/7968\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=7968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=7968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=7968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}