{"id":8420,"date":"2019-01-21T12:36:28","date_gmt":"2019-01-21T12:36:28","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=8420"},"modified":"2019-03-09T04:29:39","modified_gmt":"2019-03-09T04:29:39","slug":"how-to-install-microsoft-powershell-6-1-1-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/21\/how-to-install-microsoft-powershell-6-1-1-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install Microsoft PowerShell 6.1.1 on Ubuntu 18.04 LTS"},"content":{"rendered":"<h2>What is PowerShell?<\/h2>\n<p><strong>Microsoft PowerShell<\/strong>\u00a0is a shell framework used to execute commands, but primarily it is developed to perform administrative tasks such as<\/p>\n<ul>\n<li>Automation of repetitive jobs<\/li>\n<li>Configuration management<\/li>\n<\/ul>\n<p>PowerShell is an open-source and cross-platform project; it can be installed on Windows, macOS, and Linux. It includes an interactive command-line shell and a scripting environment.<\/p>\n<h2>How Ubuntu 18.04 made installation of PowerShell easier?<\/h2>\n<p>Ubuntu 18.04 has made installation of apps much easier via snap packages. For those who\u2019re new to the phrase \u201csnap package\u201d, Microsoft has recently introduced a snap package for PowerShell. This major advancement allows Linux users\/admins to install and run the latest version of PowerShell in fewer steps explained in this article.<\/p>\n<h2>Prerequisites to install PowerShell in Ubuntu 18.04<\/h2>\n<p>The following minimum requirements must exist before installing PowerShell 6.1.1 in Ubuntu 18.04<\/p>\n<ul>\n<li>2 GHz dual-core processor or better<\/li>\n<li>2 GB system memory<\/li>\n<li>25 GB of free hard drive space<\/li>\n<li>Internet access<\/li>\n<li>Ubuntu 18.04 LTS (long term support)<\/li>\n<\/ul>\n<h2>Steps to Install PowerShell 6.1.1 via Snap in Ubuntu 18.04 LTS<\/h2>\n<p>There are two ways to install PowerShell in Ubuntu i.e. via terminal or via Ubuntu Software Application.<\/p>\n<h3>via Terminal<\/h3>\n<p>Step 1: Open A Terminal Console<\/p>\n<p>The easiest way to open a Terminal is to use the key combination Ctrl+Alt+T at the same time.<\/p>\n<h4><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3302 lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-189.png\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-189.png 730w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-189-300x201.png 300w\" alt=\"Open Ubuntu Console\" width=\"730\" height=\"489\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-189.png\" data-srcset=\"\" \/><\/h4>\n<p>Step 2: Snap Command to Install PowerShell<\/p>\n<p>Enter snap package command i.e. \u201csnap install powershell \u2013classic\u201d in the Terminal console to initiate installation of PowerShell in Ubuntu.<\/p>\n<p>The prompt of Authentication Required on your screen is exclusively for security purposes. Before initiating any installation in Ubuntu 18.04, by default, the system requires to authenticate the account initiating this installation.<\/p>\n<p>To proceed, the user must enter credentials of the account they\u2019re currently logged in with.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3303 size-full lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-190.png\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-190.png 994w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-190-300x163.png 300w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-190-768x416.png 768w\" alt=\"Authenticate as admin\" width=\"994\" height=\"539\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-190.png\" data-srcset=\"\" \/><\/p>\n<p>Step 3: Successful Installation of PowerShell<\/p>\n<p>As soon as the system authenticates the user, Installation of PowerShell will begin in Ubuntu. (Usually, this installation takes 1-2 minutes)<\/p>\n<p>The user can continuously see the status of installation in the terminal console.<\/p>\n<p>At the end of the installation, the status of PowerShell 6.1.1 from<strong>\u00a0\u2018<\/strong>microsoft-powershell\u2019 installed is shown as it can be seen in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3304 lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-191.png\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-191.png 749w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-191-300x194.png 300w\" alt=\"Install PowerShell snap\" width=\"749\" height=\"485\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-191.png\" data-srcset=\"\" \/><\/p>\n<p>Step 4: Launch PowerShell via Terminal<\/p>\n<p>After successful installation, it\u2019s time to launch PowerShell which is a one-step process.<\/p>\n<p>Enter Linux command \u201c<strong>powershell<\/strong>\u201d in the terminal console and it will take you to PowerShell terminal in an instant.<\/p>\n<pre>powershell<\/pre>\n<p>You must be in the PowerShell prompt by now and ready to experience the world of automation and scripting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3305 lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-192.png\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-192.png 732w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-192-300x201.png 300w\" alt=\"Microsoft PowerShell on Ubuntu\" width=\"732\" height=\"490\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-192.png\" data-srcset=\"\" \/><\/p>\n<h2><strong>via Ubuntu Software<\/strong><\/h2>\n<p>Step 1: Open Ubuntu Software<\/p>\n<p>Ubuntu has facilitated its users with a desktop application of Ubuntu Software. It contains the list of all software and updates available.<\/p>\n<ul>\n<li>Open the Ubuntu Software Manager from the Ubuntu desktop.<\/li>\n<\/ul>\n<p>Step 2: Search for PowerShell in Ubuntu Software<\/p>\n<ul>\n<li>Under the list of All software, search for \u201cpowershell\u201d through the search bar.<\/li>\n<li>Search Results must include \u201cpowershell\u201d software as marked in the screenshot below.<\/li>\n<li>Click on \u201cpowershell\u201d software and proceed to Step 3.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"wp-image-3306 aligncenter lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-193.png\" sizes=\"(max-width: 623px) 100vw, 623px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-193.png 623w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-193-300x87.png 300w\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-193.png\" data-srcset=\"\" \/><\/p>\n<p>Step 3: Installing PowerShell via Ubuntu Software<\/p>\n<ul>\n<li>The user must be able to see the details of \u201cpowershell\u201d software and the Install button<\/li>\n<\/ul>\n<p>(for reference, it\u2019s marked in below image)<\/p>\n<ul>\n<li>Click on the Install button, it will initiate installation.<\/li>\n<\/ul>\n<p>(Installation via Ubuntu Software takes 1-2 minutes)<\/p>\n<ul>\n<li>The User can see installation status continuously on the screen and will be notified once installation completes.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3307 lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-194.png\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-194.png 632w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-194-300x194.png 300w\" alt=\"Install PowerShell\" width=\"632\" height=\"409\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-194.png\" data-srcset=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3308 size-large lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-195-1024x716.png\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-195-1024x716.png 1024w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-195-300x210.png 300w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-195-768x537.png 768w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-195.png 1184w\" alt=\"Installing PowerShell\" width=\"750\" height=\"524\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-195-1024x716.png\" data-srcset=\"\" \/><\/p>\n<p>Step 4: Launch PowerShell via Ubuntu Software<\/p>\n<p>After successful installation of PowerShell 6.1.1 via Ubuntu Software, the user can now launch PowerShell terminal and use it for multiple purposes and features which Microsoft PowerShell has to offer for its Linux users.<\/p>\n<ul>\n<li>Click on \u201cLaunch\u201d button (for reference, marked in below image). It will take you to PowerShell terminal successfully.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3309 lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-196.png\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-196.png 659w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-196-300x156.png 300w\" alt=\"Launch PowerShell\" width=\"659\" height=\"343\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-196.png\" data-srcset=\"\" \/><\/p>\n<p><img decoding=\"async\" class=\"wp-image-3310 aligncenter lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-197.png\" sizes=\"(max-width: 734px) 100vw, 734px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-197.png 734w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-197-300x78.png 300w\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-197.png\" data-srcset=\"\" \/><\/p>\n<h2>Test PowerShell Terminal via Commands<\/h2>\n<p>To test if PowerShell is working accurately, the user can enter few Linux commands like:<\/p>\n<p>\u201c$PSVersionTable\u201d to find Version of PowerShell installed (for reference, the result of this command attached in the screenshot below)<\/p>\n<p><img decoding=\"async\" class=\"wp-image-3311 aligncenter lazy-loaded\" src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-198.png\" sizes=\"(max-width: 737px) 100vw, 737px\" srcset=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-198.png 737w, https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-198-300x112.png 300w\" data-lazy-type=\"image\" data-src=\"https:\/\/vitux.com\/wp-content\/uploads\/2019\/01\/word-image-198.png\" data-srcset=\"\" \/><\/p>\n<p>PowerShell gives its user endless power over the system and its directories. After following the above-mentioned steps in this article, now you must be all set to experience the exciting and productive world of automation and scripting through Microsoft PowerShell.<\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=265154\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is PowerShell? Microsoft PowerShell\u00a0is a shell framework used to execute commands, but primarily it is developed to perform administrative tasks such as Automation of repetitive jobs Configuration management PowerShell is an open-source and cross-platform project; it can be installed on Windows, macOS, and Linux. It includes an interactive command-line shell and a scripting environment. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/01\/21\/how-to-install-microsoft-powershell-6-1-1-on-ubuntu-18-04-lts\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Microsoft PowerShell 6.1.1 on Ubuntu 18.04 LTS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8420","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=8420"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8420\/revisions"}],"predecessor-version":[{"id":10921,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/8420\/revisions\/10921"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=8420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=8420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=8420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}