Installing .NET 5 RC 1 on Pop! OS (or any other Ubuntu 20.04-based OS)
Whilst preparing Prise for .Net 5, I found myself testing lots of platforms in order to guarantee support (Pop OS, Windows 10, macOS) and had to install the latest release candidate on Pop! OS.
Since Pop! is based on Ubuntu, it had to figure out how the download URL is constructed from the original installer script:
https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/install-dotnet-preview.sh
Long story shot, paste the following commands in your terminal…
Download the binaries
This downloads the .Net 5 RC1 DEB package to your Downloads folder:
curl https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/5.0.0-rc.1/dotnet-5.0.0-rc.1-deb.tar.gz -o ~/Downloads/dotnet-5.0.0-rc.1-deb.tar.gz
Extract
This will create a net5rc1 directory in your Downloads folder and extract the tar to…
mkdir ~/Downloads/net5rc1 && tar xvf ~/Downloads/dotnet-5.0.0-rc.1-deb.tar.gz -C ~/Downloads/net5rc1
Install all .NET 5 packages
This command will install all deb packages from the extraction folder
apt install -y ~/Downloads/net5rc1/dotnet_packages/*
Confirm
Type the dotnet command to confirm installation
dotnet --list-sdks