tis-wsl2
5.10.16-16
WSL 2 - Windows Subsystem for Linux 2
1311 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal

- package : tis-wsl2
- name : WSL 2
- version : 5.10.16-16
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Joffrey Le Piquet
- editor :
- licence :
- locale : all
- target_os : windows
- impacted_process :
- architecture : all
- signature_date : 2024-10-15 14:01
- size : 17.12 Mo
- homepage : https://docs.microsoft.com/windows/wsl/
package : tis-wsl2
version : 5.10.16-16
architecture : all
section : base
priority : optional
name : WSL 2
categories : System and network
maintainer : WAPT Team,Tranquil IT,Joffrey Le Piquet
description : WSL 2 - Windows Subsystem for Linux 2
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
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 : https://docs.microsoft.com/windows/wsl/
package_uuid : 774e37ca-29b6-4870-977e-60e15e8b9a4e
valid_from :
valid_until :
forced_install_on :
changelog : https://docs.microsoft.com/windows/wsl/release-notes
min_os_version : 10.0.18362
max_os_version :
icon_sha256sum : 53955eb1cfa27f50eed20f11ea58e83c0e3b9349db59ce21120681cf4a5ad34c
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-10-15T14:01:16.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 : ckB3Rlp8zIxRV0V086lxb5cOG0MzQYOWnggmNgM0Eh78d79L9ckjq9ibpnAik7KvNCv0UP+cMNd+SQ2OnmMfHCQveuCizWg6A1iPOTFe9paOENv2Cc9og1sKOPrsfbBRe+p10ROxKHkJCOMywTWVaUQ8tHwgBZabKeOodPPb6AXBLDxM+vBwpRfV2r7ZuQCBAQYHDno0a+zBv5edy1Fed85MoKZPIXu8oG6REUGHWN1XzZc2SGnAJil6JYXHAmc+OgwBIBIsQAUEcyTRoR1NgzzH3Tz3tLjIfGsPkIgu2149qqVtDZ5gdszPNlcb/4l7UypIrifO2Ky9w7s38Smnbw==
# -*- coding: utf-8 -*-
from setuphelpers import *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
Installation procedure: https://docs.microsoft.com/windows/wsl/install-win10
Troobleshooting installation: https://docs.microsoft.com/windows/wsl/troubleshooting
Kernel Installation procedure: https://aka.ms/wsl2kernel
WSL2: https://aka.ms/wsl2-install
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name = "wsl_update_x64.msi"
def install():
# Specific app values
app_name = control.name
# Installing the package
if windows_version() >= WindowsVersions.Windows10v1903:
with EnsureWUAUServRunning():
# Get previous state of WSL
wsl = run_powershell("Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux")
wsl_status = wsl.get("State") # State: Disable = 0, Enable = 2
if wsl_status == 0:
print("Enabling Windows Feature: Microsoft-Windows-Subsystem-Linux")
run_powershell("Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart -All",output_format="text")
# Updating WSL to WSL2
# Installing the Kernel WSL Update if needed
try:
install_msi_if_needed(bin_name)
except:
print("INFO: A reboot is required to install %s" % bin_name)
return
try:
print("Enabling Windows Feature: VirtualMachinePlatform")
run_powershell("Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart -All",output_format="text")
except:
print("Unable to install %s, please reboot and make sure that virtualization is enabled in the BIOS" % app_name)
try:
print("Configuring %s as default" % app_name)
run_powershell("wsl --set-default-version 2")
except:
print("Unable to configure %s as default" % app_name)
else:
print("You need Windows 10 version 1903 minimum for installing WSL 2")
print("INFO: A reboot is required to use %s" % app_name)
def uninstall():
# Uninstalling the package
if windows_version() >= WindowsVersions.Windows10v1709:
with EnsureWUAUServRunning():
print("Disabling Windows Feature: Microsoft-Windows-Subsystem-Linux")
run_powershell("Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart")
if windows_version() >= "10.0.19041":
print("Disabling Windows Feature: VirtualMachinePlatform")
run_powershell("Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart")
# -*- coding: utf-8 -*-
from setuphelpers import *
bin_name = "wsl_update_x64.msi"
url_dl = "https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi"
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
latest_bin = bin_name
# Downloading latest binaries
if isfile(latest_bin):
remove_file(latest_bin)
if not isfile(latest_bin):
print("Downloading: " + latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Checking version from file
version = get_version_from_binary(latest_bin)
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
result = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
# control.set_software_version(version)
control.save_control_to_wapt()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
52770d2c4aa0210180ed31f0ba5335cff3a116787a2581a5e0fc806f918c357b : WAPT/control
53955eb1cfa27f50eed20f11ea58e83c0e3b9349db59ce21120681cf4a5ad34c : WAPT/icon.png
d9fda6c2f0189cf1da524e22a520f26aad8e5f65fc8697f4ad516473fbe9b5bc : luti.json
228c6de86b589e1415dc4173532761a2bf961f4228705d61a6db37fdb23164b3 : setup.py
0d29bc570de2347495e37784d7de42542c309fa2d837435285f0120322bccbe5 : update_package.py
4d09c776c8d45f70a202281d18e19be1118f53159b0c217a5274a31ce18525fe : wsl_update_x64.msi