.NET Runtime 10
Silent install package for .NET Runtime 10
10.0.15-2
Dependency
Dependency
- package: tis-dotnet10
- name: .NET Runtime 10
- version: 10.0.15-2
- categories: Dependency
- maintainer: WAPT Team,Tranquil IT,Stan SALOMON
- editor: Microsoft
- licence: opensource_free,cpe:/a:mit:x11_license,wapt_public
- locale: all
- target_os: darwin
- architecture: arm
- signature_date:
- size: 32.13 Mo
- homepage : https://github.com/dotnet/runtime
package : tis-dotnet10
version : 10.0.15-2
architecture : arm
section : base
priority : optional
name : .NET Runtime 10
categories : Dependency
maintainer : WAPT Team,Tranquil IT,Stan SALOMON
description : .NET Runtime is the free, cross-platform and open-source runtime from Microsoft required to run console applications, services and libraries built with .NET
depends :
conflicts :
maturity : PROD
locale : all
target_os : darwin
min_wapt_version : 2.5
sources : https://github.com/dotnet/runtime
installed_size :
impacted_process :
description_fr : .NET Runtime est l'environnement d'exécution gratuit, multiplateforme et open source de Microsoft, nécessaire pour faire fonctionner les applications console, services et bibliothèques développés en .NET
description_pl : .NET Runtime to darmowe, wieloplatformowe środowisko uruchomieniowe firmy Microsoft o otwartym kodzie źródłowym, wymagane do uruchamiania aplikacji konsolowych, usług i bibliotek utworzonych w .NET
description_de : .NET Runtime ist die kostenlose, plattformübergreifende Open-Source-Laufzeitumgebung von Microsoft, die zum Ausführen von mit .NET erstellten Konsolenanwendungen, Diensten und Bibliotheken erforderlich ist
description_es : .NET Runtime es el entorno de ejecución gratuito, multiplataforma y de código abierto de Microsoft, necesario para ejecutar aplicaciones de consola, servicios y bibliotecas desarrollados con .NET
description_pt : O .NET Runtime é o ambiente de execução gratuito, multiplataforma e de código aberto da Microsoft, necessário para executar aplicações de consola, serviços e bibliotecas desenvolvidos com .NET
description_it : .NET Runtime è l'ambiente di esecuzione gratuito, multipiattaforma e open source di Microsoft, necessario per eseguire applicazioni console, servizi e librerie sviluppati con .NET
description_nl : .NET Runtime is de gratis, platformonafhankelijke en open-source runtime van Microsoft die nodig is om met .NET gebouwde consoletoepassingen, services en bibliotheken uit te voeren
description_ru : .NET Runtime — это бесплатная кроссплатформенная среда выполнения Microsoft с открытым исходным кодом, необходимая для запуска консольных приложений, служб и библиотек, созданных на .NET
audit_schedule :
editor : Microsoft
keywords : .net,desktop,windows,windowsdesktop,il,msil,clr,jit,fc,bcl,runtime,wpf,winforms,windows forms,Microsoft,net
licence : opensource_free,cpe:/a:mit:x11_license,wapt_public
homepage : https://github.com/dotnet/runtime
package_uuid : f1860f0c-e686-46b1-96ec-47c529721dc7
valid_from :
valid_until :
forced_install_on :
changelog : https://github.com/dotnet/core/tree/main/release-notes/10.0
min_os_version : 15
max_os_version :
icon_sha256sum : c13943b8f92a4717f46bad189c0b91d9003d76a0127a41459ec91693b263830c
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2026-11-18T21:37:04.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : eKvAl76kciezvjSjceEn2IGX/BrqUFGi5cDCkow7kn6YP1X5m6F+krCtnJoh2B/wwn9pUss768mHSvDKTTlX8ysVzHL6ZKh6qeQsfvyIkCOqCCWlpumdRyX/+aTlEzb0ygE+psw5SexaFHEIhUip0/klZK/ug0stvre6+fcugIqhkVsKSbRXKptkd832MRgxzoocxS6D4WPf0wLf3dkiXLnIGMvo7i0cEqeG5WCWJBjXUqkYWZCuLF+xG9DCEUH/JAvrEbR+3ot8PinagMS3czVXN8eH8A3ffYStxvEnhcxH2DS/42PxLOTxtU9NAafTVK8iL9KANAQkcRdKZhgrIQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
arch = "arm64"
dotnet_dir = "/usr/local/share/dotnet"
sharedhost_pkg = f"com.microsoft.dotnet.sharedhost.component.osx.{arch}"
runtime_prefixes = ("com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.", "com.microsoft.dotnet.hostfxr.")
pkg_suffix = f".component.osx.{arch}"
def runtime_pkg(version):
return f"{runtime_prefixes[0]}{version}{pkg_suffix}"
def installed_runtime_pkgs():
"""Return {pkgid: version} of the installed runtime and hostfxr receipts of this major version.
Each patch version installs side by side under its own versioned pkgid, so an upgrade leaves the previous one behind.
"""
major = control.get_software_version().split(".")[0]
pkgs = {}
for pkg in get_installed_pkgs():
for prefix in runtime_prefixes:
if pkg.startswith(prefix) and pkg.endswith(pkg_suffix):
version = pkg[len(prefix):-len(pkg_suffix)]
if version.split(".")[0] == major:
pkgs[pkg] = version
return pkgs
def install():
version = control.get_software_version()
for pkg, pkg_version in installed_runtime_pkgs().items():
if pkg_version != version:
print(f"Removing .NET {pkg_version}: {pkg}")
uninstall_pkg(pkg)
install_pkg(glob.glob(f"dotnet-runtime-*-osx-{arch}.pkg")[0], key=f"pkgid:{runtime_pkg(version)}")
def uninstall():
for pkg in installed_runtime_pkgs():
uninstall_pkg(pkg)
# The "dotnet" command is shared by every .NET runtime (ASP.NET Core included): remove it only once none is left
if not any(pkg.startswith("com.microsoft.dotnet.sharedframework.") for pkg in get_installed_pkgs()):
uninstall_pkg(sharedhost_pkg)
def audit():
version = control.get_software_version()
if not uninstall_key_exists(f"pkgid:{runtime_pkg(version)}"):
print(f"Missing receipt: {runtime_pkg(version)}")
return "ERROR"
try:
runtimes = run(f"{dotnet_dir}/dotnet --list-runtimes")
except Exception as e:
print(f"dotnet does not start: {e}")
return "ERROR"
if f"Microsoft.NETCore.App {version}" not in runtimes:
print(f"Microsoft.NETCore.App {version} not listed by dotnet --list-runtimes")
return "ERROR"
return "OK"
from setuphelpers import *
from setupdevhelpers import *
"""
https://builds.dotnet.microsoft.com/dotnet/release-metadata/{version}/releases.json
"""
dotnet_version = "10.0"
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
os_dict = {
"windows-x64": "win-x64",
"windows-x86": "win-x86",
"windows-arm64": "win-arm64",
"debian(>=11),ubuntu(>=20),redhat_based(>=8)-x64": "linux-x64",
"debian(>=11),ubuntu(>=20),redhat_based(>=8)-arm64": "linux-arm64",
"darwin-x64": "osx-x64",
"darwin-arm": "osx-arm64"
}
os_type = control.target_os + "-" + ensure_list(control.architecture)[0]
if not proxies:
proxies = get_proxies_from_wapt_console()
data = wgets(f"https://builds.dotnet.microsoft.com/dotnet/release-metadata/{dotnet_version}/releases.json", proxies=proxies, as_json=True)
runtime = data["releases"][0]["windowsdesktop"] if "windows" in control.target_os else data["releases"][0]["runtime"]
version = runtime["version"]
download_url = []
for asset in runtime["files"]:
if control.target_os == "windows":
if asset["name"].endswith(".exe"):
print("Found %s " % (asset["name"]))
download_url.append({
"url": asset["url"],
"latest_bin": asset["url"].split("/")[-1]
})
# No need to break here, because we want to download all the runtimes for the different architectures (x86, x64, arm64)
elif control.target_os == "darwin":
if asset["rid"] == os_dict[os_type] and asset["name"].endswith(".pkg"):
download_url = asset["url"]
latest_bin = download_url.split("/")[-1]
break
elif control.target_os == "debian(>=11),ubuntu(>=20),redhat_based(>=8)" and asset["name"] == f"dotnet-runtime-linux-{control.architecture}.tar.gz":
download_url = asset["url"]
latest_bin = download_url.split("/")[-1]
break
arch = ensure_list(control.architecture)
print(arch)
if "arm64" in arch:
archs = ["arm64", "x64", "x86"]
if "x64" in arch:
archs = ["x64", "x86"]
if "x86" in arch:
archs = ["x86"]
# Checking version from file
if control.target_os == "windows":
print(archs)
print(download_url)
for dl_info in download_url:
if dl_info["latest_bin"].split("-")[-1].split(".exe")[0] in archs:
print("Latest %s version is: %s" % (control.name, version))
print("Download URL is: %s" % dl_info["url"])
if not isfile(dl_info["latest_bin"]):
print("Downloading: %s" % dl_info["latest_bin"])
wget(dl_info["url"], dl_info["latest_bin"], proxies=proxies)
else:
print("Latest %s version is: %s" % (control.name, version))
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
remove_outdated_binaries(version)
# Changing version of the package
if Version(version, 4) > Version(control.get_software_version(), 4):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Validating or not update-package-sources
return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
2563af9463d6f1db7da871fe37db711bf5feb51f5d447054366d079ab88b8c29 : WAPT/control
c13943b8f92a4717f46bad189c0b91d9003d76a0127a41459ec91693b263830c : WAPT/icon.png
9f7fb76b906bc06a9ed5a23f5dd27d00d396b79152f5d0ae6b682f58c98ad71e : dotnet-runtime-10.0.15-osx-arm64.pkg
c399bc6dc8b39de731fa82acef980b4181f9eac10d81d0ef4572957ce586d024 : luti.json
4325fd3b65f5a196302f560afe1c7652f9f25264fc82a78ff40dad3d33f412af : setup.py
3565398c2df429d86f6d4db8fe56e9a701a78dd6b3b5b3f586fca6efe2ebc760 : update_package.py