Skip to content

Instantly share code, notes, and snippets.

@LinuxDevSecOps
Last active July 6, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinuxDevSecOps/fb2f5a5fa2652dc84e4279d298cb7e9b to your computer and use it in GitHub Desktop.
Save LinuxDevSecOps/fb2f5a5fa2652dc84e4279d298cb7e9b to your computer and use it in GitHub Desktop.
Setup powershell into ubuntu 18.04
#!/bin/bash
# This script will setup powershell into Ubuntu 18.04 LTS
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
# Enable the "universe" repositories
sudo add-apt-repository universe
# Install PowerShell
sudo apt-get install -y powershell
# Start PowerShell
pwsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment