How to Install Microsoft PowerShell on Debian 10

Install Microsoft PowerShell on Debian 10

In this article, we will have explained the necessary steps to install and setup Microsoft PowerShell on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Microsoft PowerShell is an opensource and cross-platform tool that includes an interactive command-line shell and scripting environment. It consists of a cross-platform (Windows, Linux, and macOS) command-line shell and associated scripting language.

Install Microsoft PowerShell on Debian

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo apt update
sudo apt upgrade

Step 2. Install Snap.

First you have to enable Snap. To do that follow the command:

sudo apt install snapd snapd-xdg-open

Step 3. Install Microsoft PowerShell on Debian 10.

To install Microsoft PowerShell classic version you should execute the following command:

sudo snap install powershell –classic

Step 4. Accessing Microsoft PowerShell.

You can install Microsoft PowerShell by using two ways, either by visiting Activities -> type – Microsoft Powershell and clicking on the launcher icon when it appears or launch PowerShell by using the Terminal application by using the following command:


Congratulation, you have learned how to install and configure Microsoft PowerShell on Debian Buster. If you have any question, please leave a comment below.