Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Last active November 11, 2023 04:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/ee0aa029a026b0aa754f96f0987288da to your computer and use it in GitHub Desktop.
Save goyalmohit/ee0aa029a026b0aa754f96f0987288da to your computer and use it in GitHub Desktop.
Install PowerShell Core on CentOS 7
# 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
@windonis
Copy link

windonis commented Nov 17, 2018

Start Powershell

pwsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment