It's unclear what you mean by "Vanilla Ubuntu". There are really multiple Ubuntu installation options, including, but not limited to:
- Desktop
- Server
- Flavors
- WSL
- Base
Each of these has a different set of default packages. The WSL installation, IMHO, is pretty close to the Server installation. There are some differences in default packages. If I recall correctly, Git is not installed by default with Server, but wget
and curl
(IIRC) are. Since the "normal" Server tarball comes in a few dozen MBs larger than that of WSL, there are certainly some packages there that are removed from the WSL version.
The WSL installation also includes the wslu (WSL utilities) package by default.
I'm assuming you don't mean the Desktop distribution, since WSL doesn't (currently) include a GUI, and that would be very package-heavy.
If you really want the Base installation, with no extra packages by default, WSL does include the ability to import custom distributions.
Public Service Announcement: This is designed for advanced users. Even the very basics like locale
and readline
aren't installed by default here. You'll need to pretty much install and configure everything that would already be provided for you in the WSL version.
But if that's what you want ...
Short instructions. From PowerShell or CMD:
- Create a directory for the installation on Windows (e.g.
C:\Users\your_user\Documents\WSL\UbuntuBase
)
- Download ubuntu-base-20.04.1-base-amd64.tar.gz to
C:\Users\your_user\Documents\WSL\
- From within that directory,
wsl --import UbuntuBase .\UbuntuBase ubuntu-base-20.04.1-base-amd64.tar.gz --version 2
(see wsl --help
for details on each argument)
wsl ~ -d UbuntuBase
to run the distribution
- To set it as default,
wsl --set-default UbuntuBase
. After that, just running wsl
will start that version.
Eventually, you'll also need to create your user and tell WSL which username to use by default. See this answer for details on that.