![Powershell Core 6.2 Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/704/36698704/b_36698704.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
On CentOS 7.x, perform the following steps:
- Register the Microsoft RPM repository:
curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo.
- Install the package: sudo yum install -y powershell.
- Run PowerShell by executing pwsh, which is now installed.
On Ubuntu 18.10, perform the following steps:
- Open the Ubuntu Software store.
- Search for powershell:
![](https://epubservercos.yuewen.com/57DF63/19470379901495806/epubprivate/OEBPS/Images/3678780c-67d1-4ef4-aa8a-cdf88ccd8180.png?sign=1738819301-1HXguf6KuXAl1keLW4bJIlgHQ681iZtl-0-5ac1990a3f5b350abce718ae96093a09)
- Install and run PowerShell Core:
![](https://epubservercos.yuewen.com/57DF63/19470379901495806/epubprivate/OEBPS/Images/bdee98db-8c9d-49ea-8805-fb363de591ba.png?sign=1738819301-bgplpi2BL82BwfbdeHSA9360dEl2BXtD-0-cd68ce06c77598bd2f8f11c218ced0be)
The steps to install PowerShell on other distributions are fairly similar as long as you can use your distribution's package management system, such as rpm or dpkg.