PowerShell Core for Linux Administrators Cookbook
上QQ阅读APP看书,第一时间看更新

Using the Snapcraft package

If your distribution supports the installation of Snapcraft (snap) packages, you can install PowerShell using the snap command:

  1. Install snapd if you do not already have it. Here is how you do this on Ubuntu:
$ sudo apt install snapd
  1. Next, install the PowerShell Snapcraft package:
$ snap install powershell --classic
  1. You may be prompted for your credentials. Enter your credentials at the prompt.
  2. Launch PowerShell:
$ pwsh