How to Install Microsoft PowerShell 6.2.0 on Debian 10

Table of Contents
Install Microsoft PowerShell 6.2.0 on Debian 10
Microsoft PowerShell is an opensource and cross-platform tool that includes an interactive command-line shell and scripting environment. Microsoft PowerShell is developed to perform configuration management and automation of repetitive tasks. On Ubuntu, you can install the Microsoft PowerShell Package by using the snappy
package manager. In this tutorial, you are going to learn how to install Microsoft PowerShell 6.2.0 on Debian 10.
Prerequisites
Before you start to Install Microsoft PowerShell 6.2.0 on Debian 10. You must have the non-root user account on your system with sudo privileges.
Install PowerShell on Ubuntu
Microsoft PowerShell is made available to Linux users by the snap
package. So we are going to install it by using the snappy
package manager.
First, open the terminal application by pressing Ctrl+Alt+t
keys the same time.
Now update the apt
package manager index by typing following command in the terminal:
sudo apt update
Next, we need to install snapd
and snapd-xdg-open
packages in order to install the Snappy package manager if it’s not installed on your system. To install Snappy package manager on your system run following command in the terminal:
sudo apt install snapd snapd-xdg-open
After installing Snappy package manager we are here ready to install Microsoft PowerShell. To install Microsoft PowerShell classic version you should execute the following command:
sudo snap install powershell –classic
The above command will prompt you for authentication, please kindly enter the password for authentication to continue.
The output should be:
powershell 6.2.0 from 'microsoft-powershell' installed
Here, you have successfully installed Microsoft PowerShell on your system.
Launch 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.
You can also Launch PowerShell by using the Terminal application by using the following command:
powershell
Verify PowerShell Installed Correctly
To verify the Microsoft PowerShell installed correctly, you can execute below PowerShell command inside it:
$PSVersionTable
Conclusion
You have successfully learned how to Install Microsoft PowerShell 6.2.0 on Debian 10. If you have any queries regarding this then please don’t forget to comment below.
LATEST POSTS
-
How to Install RubyMine on Manjaro 18
-
How to Install XAMPP on Debian 10
-
How to Install WordPress with LAMP Stack on Ubuntu 18.04
-
How to Install Netbeans on Linux Mint 19
-
How to Recursively Search all Files for a String in Linux
-
How to Change Hostname on Ubuntu 18.04
-
How to Install Sublime Text 3 on Debian 9
-
How to enable SSH on Ubuntu 18.04
-
How to install XAMPP on Ubuntu 18.04
-
How to Install PHP 7.3 on Fedora 28/29/30
-
How to Install Apache Tomcat 9 on Debian 10
-
How to Install Google Earth on Linux Mint 19