官术网_书友最值得收藏!

Installing PowerShell 6 on Linux

For Linux installation, there are several ways. As indicated previously, you can download the rpm package, or you can do it using the yum install. Here, I am demonstrating on Red Hat 7 using yum, which is quiet easy. Just make sure your Linux server is connected to the internet; if not, download the rpm package and install it. As highlighted earlier, do not forget to review the instruction set for your platform. Sometimes, there are little deviations from version to version, and some known issues are highlighted. So, instead of scratching your head, a quick scan through the instruction set is a real good help.

PowerShell Core for Linux is published on official Microsoft repositories for easy installation. Perform the following instructions as a root user or your user needs to have sudo rights:

# Register the Microsoft RedHat repository
curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo
# Install PowerShell
yum install -y powershell
# Start PowerShell
powershell

After installing, you can use the Linux which command to check the path of the powershell executable.

主站蜘蛛池模板: 弥渡县| 瑞金市| 方正县| 驻马店市| 琼结县| 普宁市| 绥芬河市| 桐城市| 准格尔旗| 永新县| 诏安县| 积石山| 边坝县| 遂川县| 介休市| 类乌齐县| 进贤县| 罗城| 临洮县| 阿城市| 雷州市| 疏勒县| 文水县| 石台县| 罗平县| 精河县| 收藏| 张家港市| 陇川县| 萍乡市| 隆化县| 唐海县| 孟津县| 永靖县| 雷山县| 湾仔区| 霍林郭勒市| 辉县市| 方正县| 辉南县| 石楼县|