wsl-get

A command line tool to install any Linux distribution on WSL2.

Requirements

Install

```

cargo install wsl-get ```

Usage

Install distribution

```

wsl-get install ```

To find available distributions and versions, search on Docker Hub. And you can install it by just replacing docker pull with wsl-get install in the command. For example,

Installing Ubuntu:

```

wsl-get install ubuntu ```

Installing specified version of distribution:

```

wsl-get install ubuntu:21.04 ```

You can specify the name of installation.

```

wsl-get install ```

You can create many instances of same distribution.

```

wsl-get install ubuntu ubuntu-1 wsl-get install ubuntu ubuntu-2 wsl-get install ubuntu ubuntu-3 ```

Uninstall distribution

```

wsl-get uninstall ```

List installed distributions

```

wsl-get list ```

Just same as wsl.exe --list.

Set default user of distribution

```

wsl-get set-default-user ```

Download rootfs tarball

You can download the rootfs tarball in order to install the distribution yourself using the wsl.exe command.

```

wsl-get download ```

For more information, please run wsl-get help.