Bash On Ubuntu (CentOS) On Windows

Home » CentOS » Bash On Ubuntu (CentOS) On Windows
CentOS 4 Comments

HI All – I was searching for “bash on CentOS on windows” as opposed to
“bash on ubuntu on windows”.

Will there be or is there a CentOS on windows version?

Thanks,

Jerry

4 thoughts on - Bash On Ubuntu (CentOS) On Windows

  • Oh I love to bash on Ubuntu. Oh, wait, are you talking about the shell? ;)

    I believe you can run a CentOS in a VM as a guest on Windows but I
    haven’t tried. Not sure if that is what you want.

  • Ubuntu on Windows is a collaboration between Canonical and Microsoft. I
    highly doubt that Microsoft would make such a collaboration with CentOS. There is a minute possibility that it could happen with Red Hat.

    Please note that Ubuntu on Windows is *not* Linux.

    Peter

  • No, but it does implement the kernel syscall interface and an ELF loader.

    Therefore, there is no reason, in principle, why you could not build a CentOS userland on top of the Windows Subsystem for Linux.

    It would be about as difficult as live-migrating a working Ubuntu box to CentOS, replacing binaries one by one until you’re suddenly running a CentOS userland on top of the kernel Ubuntu shipped.

    Difficult, but do-able.

    Get to work, Jerry. :)

  • I have not tried it, but there is a tool which will let you switch to any other userspace published on the Docker Hub (which would include Fedora and CentOS):
    https://github.com/RoliSoft/WSL-Distribution-Switcher

    I imagine (but have no actual idea) that the next evolution of this will simply be making Linux-based Docker containers work (without using hyperv as Docker does now).