# 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
sudo yum install -y powershell
# Start PowerShell
pwsh
来自微软官方文档
本文介绍如何通过命令行工具注册Microsoft红帽仓库,并在Linux环境下使用yum命令安装PowerShell。首先,使用curl命令下载红帽仓库配置文件并保存到指定路径。接着,通过sudo权限执行命令,将下载的仓库配置文件导入系统。最后,利用yum工具安装PowerShell,为Linux环境增添更多功能。
# 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
sudo yum install -y powershell
# Start PowerShell
pwsh
来自微软官方文档
554
3万+

被折叠的 条评论
为什么被折叠?