Difference between revisions of "Install Powershell"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "==Purpose== *To connect to Office365 (mainly exchange online) from my linux workstation. Ran across an artical<ref>https://mattmcnabb.github.io/O365-PowerShell-On-Linux</ref>...")
 
 
Line 1: Line 1:
 +
<b>WIP</b>
 
==Purpose==
 
==Purpose==
 
*To connect to Office365 (mainly exchange online) from my linux workstation. Ran across an artical<ref>https://mattmcnabb.github.io/O365-PowerShell-On-Linux</ref> that got me excited. Going to see if I can make this work.
 
*To connect to Office365 (mainly exchange online) from my linux workstation. Ran across an artical<ref>https://mattmcnabb.github.io/O365-PowerShell-On-Linux</ref> that got me excited. Going to see if I can make this work.

Latest revision as of 10:52, 20 March 2018

WIP

Purpose

  • To connect to Office365 (mainly exchange online) from my linux workstation. Ran across an artical[1] that got me excited. Going to see if I can make this work.

Steps

  • First needed to get .Net installed[2]. I did need to make sure to not install the current (as of this writing) build of powershell, as this does not have the features I need.
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo'
sudo dnf install libunwind libicu
sudo dnf install dotnet-sdk-2.0.0
export PATH=$PATH:$HOME/dotnet

  • Install the Alpha build needed for this.
wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.17/powershell-6.0.0_alpha.17-1.el7.centos.x86_64.rpm
dnf install powershell-6.0.0_alpha.17-1.el7.centos.x86_64.rpm