At the time of this writing, you can install PowerShell 7, which is built on .NET Core 3.1, but it’s backward compatible with the modules for older releases. In this guide, you’ll learn the steps to install PowerShell 7 on Ubuntu using graphical user interface (GUI) or command line. (These are the steps to install the tool on Windows 10.)

How to install PowerShell using Ubuntu Software How to install PowerShell using package installer How to install PowerShell using Snap command on Ubuntu How to install PowerShell using using Package Repository on Ubuntu

How to install PowerShell using Ubuntu Software

Once you complete the steps, you can access the app using the pwsh on the Linux Terminal. Install PowerShell Ubuntu Software app If you want to uninstall it, then on the “Ubuntu Software” app, click the Installed tab, and click the Remove button for PowerShell.

How to install PowerShell using package installer

To install PowerShell on Linux using GUI installer, use these steps: Once you complete the steps, PowerShell will install, and you can launch it from the Terminal using the pwsh command. PowerShell Ubuntu amd64 deb package PowerShell GUI installer If you run into dependencies problems, then use the steps below to install PowerShell using command lines.

How to install PowerShell using Snap command on Ubuntu

To update the PowerShell app on Linux, use these steps: After you complete the steps, you can start the Microsoft scripting tool using the pwsh command in the Terminal. Snap install PowerShell command If you want to uninstall the tool, from the Terminal, type the sudo snap remove powershell command.

How to install PowerShell using using Package Repository on Ubuntu

To install PowerShell on Linux using Package Repository, use these steps: After you complete the steps, PowerShell will install on Ubuntu 18.04, and you can start it using the pwsh command. Package Microsoft prod command Linux apt-get install PowerShell command When you no longer need the command line tool, use the sudo apt-get remove powershell command in the Terminal to uninstall it.

PowerShell dependencies

PowerShell builds portable binaries for all Linux distributions. However, Microsoft .NET Core runtime requires several dependencies on different flavors of Linux as well as PowerShell. For example, on Ubuntu 18.04 and higher, the installation depends on libc6, libgcc1, libgssapi-krb5-2, liblttng-ust0, libstdc++6, libcurl3, libunwind8, libuuid1, zlib1g, libssl1.0.0, and libicu60. If during the installation process, you come across dependency problems, you’ll have to find and install the components manually. While preparing this guide, the installation of PowerShell 7 also required liblttng-ust0, libssl1.0.0, and libicu60. If you have the same issues, then you can get these packages with these commands: Once you complete the steps, PowerShell 7 should install on your Linux device. In case that you need to download a different version of the dependency packages, you can find them at the Ubuntu package repository. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.