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

Installing via direct download

Follow these steps to install PowerShell on CentOS:

  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, .rpm under Downloads (stable)—we will stick to the stable release.
  4. Read the installation instructions if you need additional information.
  5. Install the RPM package using the following command (assuming your download is at ~/Downloads and your pwd is ~/Downloads):
$ sudo yum install <the-downloaded-file.rpm>