Install Powershell

From Michael's Information Zone
Revision as of 10:52, 20 March 2018 by Michael.mast (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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