Powershell on Amazon EC2 instance

Microsoft powershell is now  available (alpha state ?) for use on linux machines. On the Windows Power Shell Blog installation for Ubuntu 14.04 and 16.04 as well as CentOS are described. The question was how PowerShell installs on an Amazon EC2 instance with Amazon linux as operating system.

It turned out that the description given by Microsoft for CentOs can be used for Amazon linux:

# 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_amazon

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s