Another great post from Scott Hanselman about keeping WSL instances up to date automatically within Windows 10:

https://www.hanselman.com/blog/keeping-your-wsl-linux-instances-up-to-date-automatically-within-windows-10

I’ve done this on my development machine (which is running Windows 10 Pro) like this:

UpdateWSLInstances.ps1

Here’s a sample run of the script:

Sample run of the update script

As you can see, this is a Powershell script that does all for my 2 WSL instances. For Linux Development I’m using debian and for testing kali.

Then (as Scott also mentioned in his post) I’m using the task planning feature of Windows 10 to actually run the script automatically:

Planned task (weekly schedule)

The script is scheduled to be executed once a week around noon on Mondays.

So this all resultts in a very handy solution for keeping all the various WSL instances up to date.

Keeping your WSL Linux instances up to date automatically within Windows 10

Johannes Rest


.NET Architekt und Entwickler


Beitragsnavigation


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

2 − eins =