Member-only story

How To Use PowerShell on Debian Linux

Installing PowerShell on Debian-based Linux distros

Mwiza Kumwenda
2 min readApr 16, 2024
Photo by Lukas on Unsplash

PowerShell as the name suggests is a command shell and automation tool. It is versatile and is supported on Linux, Windows and macOS.

Apart from running commands on your system, you can use PowerShell to manage and configure other platforms such as: Google Cloud, Azure, AWS, VMware, and SharePoint just to mention a few.

Installing PowerShell on Debian

First, update your package list using the command.

sudo apt update

Next, download the PowerShell deb package using wget.

wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.2/powershell_7.4.2-1.deb_amd64.deb 

Just in case, you don't have wget installed on your PC, you can install it using the command: sudo apt install wget.

Install the downloaded PowerShell deb package using the command.

sudo apt install ./powershell_7.4.2-1.deb_amd64.deb

To start using PowerShell open a terminal then run the following command.

pwsh

You can verify the installed PowerShell version using the command $PsVersionTable as follows.

With PowerShell you can comfortably manage Microsoft related products such as SharePoint, Exchange etc from your Linux PC. Further, PowerShell can significantly improve your efficiency in managing other IT infrastructure,reduce manual procedures, and streamline administrative processes.

--

--

Mwiza Kumwenda
Mwiza Kumwenda

No responses yet