Get Started with PowerShell on Debian 12 Terminal: Installation Guide

Jack Nothan
2 min readMar 1, 2024

--

PowerShell is a powerful command-line shell and scripting language that is widely used in the IT industry. It allows users to automate tasks, manage systems, and perform various administrative functions on Windows, Linux, and macOS operating systems. In this guide, we will walk you through the process of installing PowerShell on Debian 12 Terminal.

Step 1: Update your system

Before installing PowerShell, it is recommended to update your system to ensure that you have the latest packages and security updates. Open the Terminal and run the following commands:

sudo apt update

sudo apt upgrade

Step 2: Install dependencies

Next for Install PowerShell on Debian 12 Terminal you will need to install some dependencies required for PowerShell to run on Debian. Run the following command in the Terminal:

sudo apt install -y wget apt-transport-https software-properties-common

Step 3: Import Microsoft repository key

To download and install PowerShell from Microsoft’s repository, you will need to import their GPG key. Run the following command in the Terminal:

wget -q https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb

Step 4: Install PowerShell

Now that you have added Microsoft’s repository key, you can proceed with installing PowerShell on Debian. Run the following commands in the Terminal:

sudo apt update

sudo apt install -y powershell

Step 5: Launch PowerShell

Once the installation is complete, you can launch PowerShell by typing ‘pwsh’ in the Terminal. You should see a welcome message indicating that PowerShell is running successfully.

Congratulations! You have successfully installed PowerShell on Debian 12 Terminal. You can now start using this powerful tool to automate tasks and manage your system more efficiently. Happy scripting!

--

--

Jack Nothan

I am very interested in Linux and Windows and network operating system as well as network structure