Last active
November 11, 2023 04:06
-
-
Save goyalmohit/ee0aa029a026b0aa754f96f0987288da to your computer and use it in GitHub Desktop.
Install PowerShell Core on CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enter superuser mode | |
sudo su | |
# Register the Microsoft RedHat repository | |
curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/microsoft.repo | |
# Exit superuser mode | |
exit | |
# Install PowerShell | |
sudo yum install -y powershell | |
# Start PowerShell | |
powershell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Start Powershell
pwsh