PowerShell w Ubuntu 20.04 Installation
The guide describes how to install PowerShell on Ubuntu 20.04
The whole installation is very easy, let's get started.
Installing PowerShell using the SNAP Store
We make SNAP installations:
1 | apt-get install snap snapd -y |
Installing PowerShell
1 | snap install powershell --classic |
We run PowerShell with a command
1 | pwsh |
Below is an example of the result of this command :
1 2 3 4 5 6 7 | PowerShell 7.1.2 Copyright (c) Microsoft Corporation. https://aka.ms/powershell Type 'help' to get help. PS /root> |
we can exit by executing the command
1 | exit |
Installing PowerShell from the Ubuntu repository
We download the .deb file
1 | wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb |
we install the file
1 | dpkg -i packages-microsoft-prod.deb |
We are updating packages and installing:
1 | apt-get update -y |
1 | apt-get install powershell -y |
PowerShell is started in the same way as in the case of installation with SNAP, i.e. with a command:
1 | pwsh |
Related entries:
iftop - monitoring network connections in real time
The guide describes how to install Redis server in Ubuntu 20.04
Installation of PostgreSQL and phpPgAdmin on Ubuntu 18.04
Installation of the Vivaldi browser in Ubuntu and Debian
Nextcloud problem MySQL is used as a database, but does not support 4-byte characters