Get the dotnet-install script
Download the official .NET install script and make it executable.
bash
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
# or: curl -fsSL https://dot.net/v1/dotnet-install.sh -o dotnet-install.sh
chmod +x dotnet-install.sh