22
33# System must first have curl installed.
44# The following command will download the installation script and run it.
5- # curl -L https://builds.dotnet.microsoft.com /dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/install-dotnet-$PRERELEASETYPE.sh -o install-dotnet-$PRERELEASETYPE.sh && bash install-dotnet-$PRERELEASETYPE.sh
5+ # curl -L https://dotnetcli.blob.core.windows.net /dotnet/release/install-preview/10.0.0-$PRERELEASETYPE.$PREVIEW_NUMBER/install-dotnet-$PRERELEASETYPE.sh -o install-dotnet-$PRERELEASETYPE.sh && bash install-dotnet-$PRERELEASETYPE.sh
66# The script will
77# - install any additional dependences needed for the script to continue
88# - download a tar.gz containing the .NET preview installer packages to the current directory
@@ -29,72 +29,15 @@ DOWNLOAD_DIR=$PWD
2929DOTNET_PACKAGE_DIR=" dotnet_packages"
3030SUPPORTED_DISTRO=1
3131
32- DEPS_BUILD=" 25163.2 "
33- PREVIEW_NUMBER=" 2 "
34- PRERELEASETYPE=" preview " # rc, preview
32+ DEPS_BUILD=" 25451.107 "
33+ PREVIEW_NUMBER=" 1 "
34+ PRERELEASETYPE=" rc " # rc, preview
3535
3636declare -a ADDITIONAL_DEPS
3737
3838function distro_check()
3939{
4040 case $DISTRO_NAME in
41- * " Debian" * )
42- PACKAGE_TYPE=" deb"
43- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
44- ;;
45- * " Ubuntu 18.04" * | * " Mint 19" * )
46- PACKAGE_TYPE=" deb"
47- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
48- ;;
49- * " Ubuntu 20.04" * | * " Focal" * )
50- PACKAGE_TYPE=" deb"
51- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
52- ;;
53- * " Ubuntu 22.04" * | * " Jammy" * )
54- PACKAGE_TYPE=" deb"
55- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
56- ;;
57- * " Ubuntu 23.04" * | * " Lunar" * )
58- PACKAGE_TYPE=" deb"
59- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
60- ;;
61- * " Ubuntu 23.10" * | * " Mantic" * )
62- PACKAGE_TYPE=" deb"
63- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
64- ;;
65- * " Ubuntu 24.04" * | * " Jammy" * )
66- PACKAGE_TYPE=" deb"
67- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
68- ;;
69- * " Ubuntu 24.10" * | * " Oracular" * )
70- PACKAGE_TYPE=" deb"
71- ADDITIONAL_DEPS=(" tar" " gzip" " curl" )
72- ;;
73- * " Fedora" * | * " Red Hat" * )
74- PACKAGE_TYPE=" rpm"
75- DEPS_PACKAGE=" https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /dotnet-runtime-deps-10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER .$DEPS_BUILD -fedora.34-x64.rpm"
76- ADDITIONAL_DEPS=(" tar" " gzip" " compat-openssl10" " libicu" )
77- ;;
78- * " openSUSE" * )
79- PACKAGE_TYPE=" rpm"
80- DEPS_PACKAGE=" https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /dotnet-runtime-deps-10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER .$DEPS_BUILD -opensuse.42-x64.rpm"
81- ADDITIONAL_DEPS=(" tar" " gzip" " libopenssl1_0_0" " libicu" )
82- ;;
83- * " sles" ** )
84- PACKAGE_TYPE=" rpm"
85- DEPS_PACKAGE=" https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /dotnet-runtime-deps-10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER .$DEPS_BUILD -sles.12-x64.rpm"
86- ADDITIONAL_DEPS=(" tar" " gzip" " libopenssl1_0_0" " libicu" )
87- ;;
88- * " Oracle" * )
89- PACKAGE_TYPE=" rpm"
90- DEPS_PACKAGE=" https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /dotnet-runtime-deps-10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER .$DEPS_BUILD -oraclelinux.8-x64.rpm"
91- ADDITIONAL_DEPS=(" tar" " gzip" " libicu" )
92- ;;
93- * " CentOS" * )
94- PACKAGE_TYPE=" rpm"
95- DEPS_PACKAGE=" https://builds.dotnet.microsoft.com/dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /dotnet-runtime-deps-10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER .$DEPS_BUILD -centos.8-x64.rpm"
96- ADDITIONAL_DEPS=(" tar" " gzip" " libicu" )
97- ;;
9841 * ) SUPPORTED_DISTRO=0 ;;
9942 esac
10043}
@@ -115,9 +58,9 @@ function download_preview()
11558
11659 echo " *** Download source: ${DOTNET_SRC} "
11760 echo
118- echo " *** Downloading https://builds.dotnet.microsoft.com /dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /$DOTNET_SRC to $DOWNLOAD_DIR ..."
61+ echo " *** Downloading https://dotnetcli.blob.core.windows.net /dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /$DOTNET_SRC to $DOWNLOAD_DIR ..."
11962
120- curl " https://builds.dotnet.microsoft.com /dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /" $DOTNET_SRC -o $DOWNLOAD_DIR /$DOTNET_SRC
63+ curl " https://dotnetcli.blob.core.windows.net /dotnet/release/install-preview/10.0.0-$PRERELEASETYPE .$PREVIEW_NUMBER /" $DOTNET_SRC -o $DOWNLOAD_DIR /$DOTNET_SRC
12164
12265 echo
12366 echo " *** Unpacking ${DOTNET_SRC} ..."
198141 echo
199142 install
200143else
201- echo " ${DISTRO_NAME} is not supported by the .NET 9 Preview installer . Please use the dotnet-install script - https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script."
144+ echo " The install-dotnet-preview script has been deprecated . Please use the dotnet-install script - https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script."
202145fi
0 commit comments