Manual install .NET SDK 9 on ubuntu with .NET SDK 8
2025-07-17 20:50 蜡笔小旧 阅读(27) 评论(0) 收藏 举报echo $DOTNET_ROOT wget https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.302/dotnet-sdk-9.0.302-linux-x64.tar.gz sudo tar -xzf dotnet-sdk-9.0.302-linux-x64.tar.gz -C $DOTNET_ROOT dotnet --info
NOTE: The script doesn't follow the official guide for installing .NET SDK to the home folder. The default location on Ubuntu 22.04 is /usr/share/dotnet (when installed from packages.microsoft.com) or /usr/lib/dotnet (when installed from Jammy feed).
REF:
- https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install
- https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables#net-sdk-and-cli-environment-variables
浙公网安备 33010602011771号