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

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.

主站蜘蛛池模板: 景东| 商洛市| 永福县| 磐安县| 宁明县| 乌兰县| 涡阳县| 营山县| 乌苏市| 伊金霍洛旗| 芦溪县| 会东县| 阜康市| 延边| 沧州市| 南陵县| 长沙县| 海林市| 高邮市| 新巴尔虎右旗| 璧山县| 栾川县| 北川| 绿春县| 陆川县| 永康市| 彩票| 华坪县| 邹城市| 宣化县| 蒙自县| 西乌珠穆沁旗| 温泉县| 抚顺市| 盐源县| 昌图县| 怀集县| 惠州市| 龙胜| 黑山县| 临沭县|