Created
May 23, 2023 17:08
-
-
Save Dangercoder/abfb81bb90f4c83ca79e920a0bf67c8a to your computer and use it in GitHub Desktop.
shell script for setting up .NET 7 and clojure-clr on Ubuntu
This file contains 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/bash | |
# Download the Microsoft package | |
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
# Install the package | |
sudo dpkg -i packages-microsoft-prod.deb | |
# Remove the package | |
rm packages-microsoft-prod.deb | |
# Update the packages and install .NET SDK | |
sudo apt-get update | |
sudo apt-get install -y dotnet-sdk-7.0 | |
# Update the packages and install ASP.NET Core Runtime | |
sudo apt-get update | |
sudo apt-get install -y aspnetcore-runtime-7.0 | |
# Install .NET Runtime | |
sudo apt-get install -y dotnet-runtime-7.0 | |
# Install Clojure Main tool | |
dotnet tool install --global --version 1.12.0-alpha7 Clojure.Main | |
# Add the tool to the PATH | |
echo 'export PATH="$PATH:$HOME/.dotnet/tools"' >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment