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

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.

主站蜘蛛池模板: 读书| 宣恩县| 阳江市| 霍林郭勒市| 桃园市| 绵竹市| 平顶山市| 筠连县| 资阳市| 西平县| 阿瓦提县| 神农架林区| 连平县| 师宗县| 保靖县| 潍坊市| 栖霞市| 安康市| 濮阳县| 五常市| 芦溪县| 克山县| 乌恰县| 灵寿县| 璧山县| 靖西县| 定边县| 晋城| 慈溪市| 嘉善县| 隆安县| 泾源县| 宾阳县| 金湖县| 延长县| 古蔺县| 灵璧县| 化德县| 麟游县| 松潘县| 洛阳市|