Sample Header Ad - 728x90

How to install previous dotnet versions alongside latest versions?

0 votes
1 answer
524 views
I'm using PopOs 21.10 and use the latest dotnet versions enter image description here Now I have to install the previous version dotnet core 3.1 I tried wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo apt-get update; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-3.1 but get the error > E: Unable to locate package dotnet-sdk-3.1 > E: Couldn't find any package by glob 'dotnet-sdk-3.1' I also tried to change the package name sudo apt-get update; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y aspnetcore-sdk-3.1 but get similiar errors. When downloading the tar archive I run these commands from inside the downloads directory mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.419-linux-arm64.tar.gz -C $HOME/dotnet export DOTNET_ROOT=$HOME/dotnet export PATH=$PATH:$HOME/dotnet but even after restarting I can't find any 3.1 version on my machine. Would someone mind helping on how to install previous versions without removing other ones?
Asked by Question3r (11 rep)
May 15, 2022, 09:57 AM
Last activity: May 16, 2022, 05:10 PM