Skip to content

Instantly share code, notes, and snippets.

@MShahine
Last active May 9, 2020 01:24
Show Gist options
  • Save MShahine/7a09013f301c393322e047f060335bf4 to your computer and use it in GitHub Desktop.
Save MShahine/7a09013f301c393322e047f060335bf4 to your computer and use it in GitHub Desktop.
Install PowerShell 7 In Ubuntu 18.04
# 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
# Remove Package
rm -rf packages-microsoft-prod.deb
@MShahine
Copy link
Author

MShahine commented May 7, 2020

Install PowerShell 7 In Ubuntu 18.04 With Bash Script

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