Ordres per instal·lar Kali Linux sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id OffSec.KaliLinux -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OffSec.KaliLinux -e --silentwinget uninstall --id OffSec.KaliLinux -e --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path KaliLinux_1.13.1.0.AppxBundleDesinstal·lar
Get-AppxPackage -Name KaliLinux.54290C8133FEE | Remove-AppxPackageARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path KaliLinux_1.13.1.0.AppxBundleDesinstal·lar
Get-AppxPackage -Name KaliLinux.54290C8133FEE | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-kali-linux.ps1
$url = 'https://wslstorestorage.blob.core.windows.net/wslblob/KaliLinux_1.13.1.0.AppxBundle'
$sha256 = '4320391962D3E212B9EC83475CAA7C78A99BFC88F657D4F7B44A60550ED3F2BD'
$file = Join-Path $env:TEMP 'KaliLinux_1.13.1.0.AppxBundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-kali-linux.ps1
$url = 'https://wslstorestorage.blob.core.windows.net/wslblob/KaliLinux_1.13.1.0.AppxBundle'
$sha256 = '4320391962D3E212B9EC83475CAA7C78A99BFC88F657D4F7B44A60550ED3F2BD'
$file = Join-Path $env:TEMP 'KaliLinux_1.13.1.0.AppxBundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file