How to install PowerShell in Linux Mint
March 25, 2021
The PowerShell installation instructions often forget about Linux Mint, apparently, their authors believe that Linux Mint users do not need PowerShell. Let's fill that gap and take a look at how to install PowerShell in Linux Mint.
Linux Mint has several versions - “regular”, which, by the way, also differs in desktop environments (Cinnamon, MATE, Xfce) and LMDE (stands for Linux Mint Debian Edition).
How to install PowerShell in Linux Mint 20.1 (Cinnamon, MATE, Xfce)
Installing PowerShell in Linux Mint is the same regardless of the desktop environment (Cinnamon, MATE, Xfce).
Update the package list:
sudo apt update
Install the dependencies:
sudo apt install -y wget apt-transport-https software-properties-common
Download the GPG keys of the Microsoft repository:
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
Register the GPG keys for the Microsoft repository:
sudo dpkg -i packages-microsoft-prod.deb
Update the package list after adding packages.microsoft.com:
sudo apt update
Enable the “universe” repositories:
sudo add-apt-repository universe
Install PowerShell:
sudo apt install -y powershell
Start PowerShell:
pwsh
PowerShell will update automatically when all packages on the system are updated. You can separately launch the PowerShell update with the commands:
sudo apt update sudo apt install powershell
If you want to remove PowerShell from Linux Mint, then run the command:
sudo apt remove powershell
How to install PowerShell in LMDE
Download the GPG keys of the Microsoft repository:
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb
Add the GPG keys for the Microsoft repository:
sudo dpkg -i packages-microsoft-prod.deb
Update the list of programs:
sudo apt update
Install PowerShell:
sudo apt install -y powershell
Starting PowerShell:
pwsh
PowerShell will update automatically when all packages on the system are updated. You can separately launch the PowerShell update with the commands:
sudo apt update sudo apt install powershell
If you want to remove PowerShell from LMDE, then run the command:
sudo apt remove powershell
See also “Linux PowerShell Basics (Beginner's Guide)”.
Related articles:
- How to install PowerShell on Arch Linux, Manjaro, BlackArch (96.7%)
- Linux PowerShell Basics (Beginner's Guide) (77.3%)
- How to change the login shell in Linux. chsh instruction (74.3%)
- How to Run a Program Automatically on Startup in Linux (69.5%)
- Xfce boots without Taskbar and Start button (SOLVED) (69.5%)
- How to determine why Linux boots into Emergency mode (RANDOM - 50%)
Thanks you very much for the guild. Yours is the only guide up to date.