You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Install multiple versions while not overwriting `dotnet` binaries from prior installs.
292
+
293
+
If you install .NET SDKs or the .NET runtime from an earlier version on top of a newer version, you need to use `--skip-non-versioned-files` so that
294
+
the 'unversioned' `dotnet` files from the earlier version don't overwrite the same files from the newer version.
295
+
296
+
```shell
297
+
:~ $ ./dotnet-install.sh --channel 9.0 --install-dir local-dotnet # installs the latest 9 SDK to the specified directory
298
+
dotnet-install: Attempting to download using aka.ms link https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.303/dotnet-sdk-9.0.303-linux-x64.tar.gz
299
+
dotnet-install: Remote file https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.303/dotnet-sdk-9.0.303-linux-x64.tar.gz size is 218004272 bytes.
300
+
dotnet-install: Extracting archive from https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.303/dotnet-sdk-9.0.303-linux-x64.tar.gz
301
+
dotnet-install: Downloaded file size is 218004272 bytes.
302
+
dotnet-install: The remote and local file sizes are equal.
303
+
dotnet-install: Installed version is 9.0.303
304
+
dotnet-install: Adding to current process PATH: `$HOME/local-dotnet`. Note: This change will be visible only when sourcing script.
305
+
dotnet-install: Note that the script does not resolve dependencies during installation.
306
+
dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, selectyour operating system and check the "Dependencies" section.
:~ $ ./local-dotnet/dotnet --list-sdks # see what SDKs we have available
312
+
9.0.303 [$HOME/local-dotnet/sdk]
313
+
:~ $ ./dotnet-install.sh --channel 8.0 --install-dir local-dotnet --skip-non-versioned-files # install the 8 SDK to the same place, but keep the 9 dotnet binaries
314
+
dotnet-install: Attempting to download using aka.ms link https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.412/dotnet-sdk-8.0.412-linux-x64.tar.gz
315
+
dotnet-install: Remote file https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.412/dotnet-sdk-8.0.412-linux-x64.tar.gz size is 216096947 bytes.
316
+
dotnet-install: Extracting archive from https://builds.dotnet.microsoft.com/dotnet/Sdk/8.0.412/dotnet-sdk-8.0.412-linux-x64.tar.gz
317
+
dotnet-install: Downloaded file size is 216096947 bytes.
318
+
dotnet-install: The remote and local file sizes are equal.
319
+
dotnet-install: Installed version is 8.0.412
320
+
dotnet-install: Adding to current process PATH: `$HOME/local-dotnet`. Note: This change will be visible only when sourcing script.
321
+
dotnet-install: Note that the script does not resolve dependencies during installation.
322
+
dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, selectyour operating system and check the "Dependencies" section.
:~ $ ./local-dotnet/dotnet --list-sdks # we should have 2 SDKs now
330
+
8.0.412 [$HOME/local-dotnet/sdk]
331
+
9.0.303 [$HOME/local-dotnet/sdk]
332
+
291
333
## Set environment variables
292
334
293
335
Manually installing .NET doesn't add the environment variables system-wide, and generally only works for the session in which .NET was installed. There are two environment variables you should set for your operating system:
0 commit comments