{"id":15338,"date":"2022-02-17T15:13:30","date_gmt":"2022-02-17T15:13:30","guid":{"rendered":"https:\/\/linuxways.net\/?p=15338"},"modified":"2022-02-17T15:13:30","modified_gmt":"2022-02-17T15:13:30","slug":"how-to-install-microsoft-powershell-on-manjaro-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/manjaro\/how-to-install-microsoft-powershell-on-manjaro-linux\/","title":{"rendered":"How to Install Microsoft Powershell on Manjaro Linux"},"content":{"rendered":"<h2>What is Microsoft Powershell?<\/h2>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/scripting\/overview?view=powershell-7.2\">Powershell<\/a> is a cross-platform task automation tool that comprises a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS. Previously, it was known as Windows Powershell. It was made open-source and cross-platform in 2016. Before that, it was made to be used on Windows only.<\/p>\n<p>It is used to<\/p>\n<ul>\n<li>automate time-consuming tasks,<\/li>\n<li>automate the management of systems,<\/li>\n<li>provide network-wide workarounds,<\/li>\n<li>run a script on multiple devices,<\/li>\n<li>make the computer system more visible to the user and a lot more.<\/li>\n<\/ul>\n<p>Today, we will explore how to install Microsoft PowerShell on our machine. The operating system that we have used to install the application on is Manjaro Linux which is a user-friendly, reliable, and efficient distro of the Linux family. Manjaro is an amazing OS for beginners as well as for experts because of its smooth performance and high speed.<\/p>\n<p>Without any further ado, let\u2019s begin the tutorial!<\/p>\n<h2>Installation Guide:<\/h2>\n<p>Following are the steps that we will follow to install the application on our machine:<\/p>\n<h3>Step 1: Clone AUR repository<\/h3>\n<p>The very first step is to clone the AUR repository of Snapd packet manager in our system. That can be done by running the command mentioned below:<\/p>\n<pre>git clone <a href=\"https:\/\/aur\">https:\/\/aur<\/a>.archlinux.org\/snapd.git<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"508\" height=\"25\" class=\"wp-image-15339\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-497.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-497.png 508w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-497-300x15.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-497-501x25.png 501w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/p>\n<p>This is how the output will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"157\" class=\"wp-image-15340\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-498.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-498.png 654w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-498-300x72.png 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/p>\n<h3>Step 2: Build the cloned package:<\/h3>\n<p>Now in this step, we will build the package that we just cloned in the previous step. To do that first go to snapd directory where we cloned the package. Do that by running this command:<\/p>\n<pre>cd snapd<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"181\" height=\"25\" class=\"wp-image-15341\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-499.png\" \/><\/p>\n<p>After that run the following command to build the package:<\/p>\n<pre>makepkg -si<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"24\" class=\"wp-image-15342\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-500.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-500.png 375w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-500-300x19.png 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/p>\n<p>The building process will shortly begin and this is how the terminal will appear:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"561\" class=\"wp-image-15343\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-501.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-501.png 1025w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-501-300x164.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-501-768x420.png 768w\" sizes=\"auto, (max-width: 1025px) 100vw, 1025px\" \/><\/p>\n<h3>Step 3: Enable Snapd socket<\/h3>\n<p>After building the package, we will enable the snapd socket which is responsible for managing the main snap communication socket. To do that run this command:<\/p>\n<pre>sudo systemctl enable --now snapd.socket<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"25\" class=\"wp-image-15344\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-502.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-502.png 633w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-502-300x12.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/p>\n<h3>Step 4: Create link between \/var\/lib\/snapd\/snap \/snap<\/h3>\n<p>In this step, we will enable classic snap support by running the command mentioned below. This command will create a symbolic link between \/var\/lib\/snapd\/snap \/snap.<\/p>\n<pre>sudo ln -s \/var\/lib\/snapd\/snap \/snap<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"26\" class=\"wp-image-15345\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-503.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-503.png 602w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-503-300x13.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/p>\n<h3>Step 5: Install Powershell<\/h3>\n<p>Now, this is the step where we will finally install Powershell on our system. It can be done by running the following command:<\/p>\n<pre>sudo snap install powershell --classic<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"27\" class=\"wp-image-15346\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-504.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-504.png 619w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-504-300x13.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/p>\n<p>The installation will begin shortly after entering the command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1017\" height=\"42\" class=\"wp-image-15347\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-505.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-505.png 1017w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-505-300x12.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-505-768x32.png 768w\" sizes=\"auto, (max-width: 1017px) 100vw, 1017px\" \/><\/p>\n<p>Once the installation is completed, you will get an output of successful installation like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"33\" class=\"wp-image-15348\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-506.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-506.png 517w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-506-300x19.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-506-501x33.png 501w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/p>\n<h3>Step 6: Verify Installation<\/h3>\n<p>Now we have to verify whether the installation process went smoothly and the application was properly downloaded or not. To do that, we will check if the application exists on our system and are we able to use it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"1080\" class=\"wp-image-15349\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-507.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-507.png 1920w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-507-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-507-1024x576.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-507-768x432.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-507-1536x864.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>Next, open it to see if it is working fine. This is how it will appear after opening it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"601\" class=\"wp-image-15350\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-508.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-508.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-508-300x229.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-508-768x586.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<h2>How to uninstall Powershell from Manjaro Linux<\/h2>\n<p>Now that we have successfully installed Powershell, let\u2019s also explore how to uninstall it from our system with the help of a simple one-line command. This is the command:<\/p>\n<pre>sudo snap remove powershell<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"554\" height=\"44\" class=\"wp-image-15351\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-509.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-509.png 554w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/02\/word-image-509-300x24.png 300w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/p>\n<p>Once removed, you will get a confirmation output as shown above.<\/p>\n<p>In this detailed tutorial, we learned to install Microsoft Powershell on Manjaro Linux with the help of a few easy-to-follow commands. We also got to explore how can we remove the application with the help of just one command in case it is no longer needed. I hope you find this guide helpful.<\/p>\n<p>To see how can you install Microsoft Powershell on Ubuntu 20.04, visit:<\/p>\n<p><a href=\"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-microsoft-powershell-on-ubuntu-20-0\/\">https:\/\/linuxways.net\/ubuntu\/how-to-install-microsoft-powershell-on-ubuntu-20-0\/<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>What is Microsoft Powershell? Powershell is a cross-platform task automation tool that comprises a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows,&hellip;<\/p>","protected":false},"author":1,"featured_media":15389,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[891],"tags":[829,156],"class_list":["post-15338","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-manjaro","tag-manjaro-linux","tag-microsoft-powershell"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=15338"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/15338\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/15389"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=15338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=15338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=15338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}