Skip to content

Instantly share code, notes, and snippets.

@Dangercoder
Created May 23, 2023 17:08
Show Gist options
  • Save Dangercoder/abfb81bb90f4c83ca79e920a0bf67c8a to your computer and use it in GitHub Desktop.
Save Dangercoder/abfb81bb90f4c83ca79e920a0bf67c8a to your computer and use it in GitHub Desktop.
shell script for setting up .NET 7 and clojure-clr on Ubuntu
#!/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