How to Install PowerShell in Linux? Last Updated : 06 Oct, 2021 Comments Improve Suggest changes Like Article Like Report PowerShell is well-known among Windows administrators. It is a.NET-based task-based command-line shell and scripting language. You can quickly automate tasks for operating system maintenance and much more with PowerShell. PowerShell was once only available for Microsoft Windows. This admin tool, on the other hand, can now be installed and used on Linux. Installing PowerShell using Snap packages 1. The least complex approach to install PowerShell using snap is as per the following : sudo snap install powershell --classicInstalling PowerShell using snap 2. Now you can simply launch PowerShell by using a simple command : pwshOpening PowerShellInstalling PowerShell using a package repository Installing PowerShell from a package repository is the preferred approach in Linux. 1. First update list of system packages using below command : sudo apt-get updateUpdate system source 2. Install pre-requisite packages using the below command : sudo apt-get install -y wget apt-transport-https software-properties-commonInstalling pre-requisite packages 3. Now download the Microsoft repository GPG keys : wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.debDownloading Microsoft GPG key 4. Then register the Microsoft repository GPG keys : sudo dpkg -i packages-microsoft-prod.debRegistering GPG key 5. Then update the system source : sudo apt-get updateUpdating system source 6. Enabling the universe repositories : sudo add-apt-repository universeEnable universe repositories 7. Now we can finally install PowerShell using the below command : sudo apt-get install -y powershellInstalling PowerShell 8. Now we can start PowerShell by simply typing the below command : $ pwshStarting PowerShell Comment More infoAdvertise with us Next Article How to Install PowerShell in Linux? jayantmehra02 Follow Improve Article Tags : Linux-Unix How To Installation Guide how-to-install Similar Reads How to Install Perl on Linux? Prerequisite: Introduction to Perl Before, we start with the process of Installing Perl on our System. We must have first-hand knowledge of What the Perl Language is and what it actually does?. Perl is a general-purpose, high level interpreted and dynamic programming language. Perl was originally de 3 min read How to Install Z Shell(zsh) on Linux? The ZSH or Z Shell is a Unix based shell or can be called as a command-line interpreter. It is an extended version of the good old Bourne shell (sh). It does have some features form Bash with lots of added features like automatic cd (Change Directory), spell check, path expansion, and many more. It 2 min read How To Install Poweriso On Kali Linux PowerISO is a flexible and extensively used marketable software designed for managing, creating, editing, and burning ISO image lines. PowerISO provides a range of essential features for working with these lines, making it a precious tool for both Windows and, with the help of comity layers like Win 4 min read How to Install GNU Octave in Linux? Octave is open-source, free available for many of the platforms. It is actually a High-level Language. It comes up with a text interface along with an experimental graphical interface. It is also used for various Machine Learning algorithms for solving various numeric problems. You can say that it i 2 min read How to Install PHP on Linux? PHP is a popular server-side scripting language that is especially used in web development. If you're working on a Linux environment, whether it's a personal development setup or a production server, you will likely need PHP installed. In this article, we will see the step-by-step guide to install P 2 min read How to Install Python-sh on Linux? In python, the sh package is a full-fledged sub-process replacement for Python 2.6 - 3.8, PyPy, and PyPy3 that allows you to call any program as if it were a function. So, in this article, we will be installing the sh package in Python on Linux operating system. Installing Sh package on Linux using 1 min read How to Install LISP on Linux? LISP (List programming) is the second-oldest high-level programming language after Fortran. It has a fully parenthesized prefix notation. Installing LISP on Linux:Follow the below steps to install LISP on Linux: Step 1: Install SBCL compiler. Steel Bank Common Lisp (SBCL) is the most common Lisp com 1 min read How to Install Linux on Windows PowerShell Subsystem? There are several ways to Install a Linux subsystem on your Windows PC Powershell Environment. It is good for learners, but it is recommended using original Linux OS if you are a developer as the Subsystem lacks the pre-installed Linux tools. Before we begin installing a Linux subsystem, we need to 2 min read How to Install pywin32 on Linux? Pywin32 is a Python extension or library for Windows OS which is used to access the characteristics of the Win32 application programming interface (API) on the Python language environment. It supported Python 3 and above versions. In this article, we will look into the process of installing Pywin32 1 min read How to Install Software Applications in Linux? Linux offers a flexible and powerful environment for running software, but if you're new to the platform, you might wonder how to install software in Linux. Unlike other operating systems, Linux provides multiple ways to install applications, whether through package managers, terminal commands, or g 7 min read Like