Last active
June 29, 2018 00:34
-
-
Save alanstevens/e725c73f7bf7c05bfe57a77f1705d88f to your computer and use it in GitHub Desktop.
Script to install dotnet core sdk 2.1 on Ubuntu platforms. Run it with sudo and you'll be golden.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg | |
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | |
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list | |
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | |
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg | |
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list | |
sudo apt-get install -y apt-transport-https | |
sudo apt-get update | |
sudo apt-get install -y dotnet-sdk-2.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment