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

Installing via direct download

Follow these steps to install PowerShell on Ubuntu:

  1. Go to https://github.com/powershell/powershell.
  2. Scroll down to the table that contains the list of Linux distributions officially supported by the PowerShell team.
  3. Click on the relevant link, that is, .deb under Downloads (stable) or Downloads (preview).
  4. Read the installation instructions if you need additional information.
  5. Use dpkg to install the package:
$ sudo dpkg -i powershell-version-os-osversion_architecture.deb
$ sudo apt install -f