Win11 WSL Install the CentOS 7 system

tags: Linux  wsl  centos  windows  

In general, installing the Linux subsystem can only be installed from the Microsoft Store. There are only a few official mirrors, Ubuntu, Kali Linux, Debian, Alpinlinux, OpenSuse, and SUSE ENTERPRISE Server.

If you want to install other systems, you must install it manually, such as CentOS.

Necessary prerequisites: open the Windows subsystem (ie WSL) on Linux on Win11

Methods installed through the GitHub open source package

Reference address: https://www.how2shout.com/how-/install- on-windows-10-sabsystem-dux.html

  1. Download cENTOS mirror package

The following is an open source project on GitHub, which provides downloads for the Windows subsystem suitable for Linux.
https://github.com/mishamosher/CentOS-WSL

  1. After decompressing the mirror package, get the following two files
    Between:rootfs.tar.gz , CentOS.exe

  2. Install
    Right buttonCentOS.exeFile, run as an administrator

  3. The installation is complete
    After the installation is complete, you will receive a message on the CentOS command screen. Press the Enter key to exit the settings.

  4. Run CentOS 7
    One is: found in the installation directoryCentOS7.exe Double -click to run, enter the Linux system
    Another type: Enter in CMDwsl, Enter the Linux system

  5. Update yum

yum -y update
  1. Uninstalled
    To uninstall it, switch Powershell as an administrator to the CentOS directory,./CentOS.exe clean

Method 2 Install it by importing other mirrors

Reference address: https://winaero.com/export-import-wsl-linux-distro-windows-10

You can import the linux distribution system TAR file, which allows you to import any distribution you like and have any configuration you want. You can specify any name and custom folder position to store the custom release version.

  1. download CentOS.tar.gz Mirror file
  2. Open the CMD command panel as an administrator
    View imported mirror fileswsl --list --all, Easy to set the system name
  3. Run the following command:wsl.exe --import <DistributionName> <InstallLocation> <FileName>
    DistributionName: Customized Linux distribution system name, such ascentos7
    InstallLocation: Mirror installation directory, such asd:\install\CentOS
    Filename: Mirror to installd:\download\CentOS.tar.gz
  4. View imported mirror fileswsl --list --all
  5. Use imported mirrorwsl --distribution <DistributionName>
    DistributionName: That is the customized system name above
  6. Update the commandyum -y update

Uninstall:
wsl.exe --unregister <DistributionName>

Intelligent Recommendation

Windows 10 WSL install Centos

1. Open WSL, there is nothing to say Open the powershell with administrator rights and execute Or select WSL in the program and function. 2. Download the docker image of Centos 7 You can refer tohttps...

Install CentOS based on WSL on Windwos11

Installation environment, Windows 11 Professional Edition Enable WSL Turn on [Enable or Turn off Windwos Function] in Windows settings, check [Windwos Subsystem for Linux], click OK, the system will p...

Win11 Install WSL Linux Ubuntu V18.04 and Common Configuration

Install WSL 2. View list of linux distribution lists 3. Installation WSL2 appears "Reference object type does not support the operation of trying" REG script solution 4. WSL modify the linux...

WSL installation, install Ubuntu system on WSL

Old rules, first go to the official document link:https://docs.microsoft.com/zh-cn/windows/wsl/install-win10 The first is to enable related functions in the control panel First enable the developer op...

Introduction to the disk replacement and WSL usage of Win11 WSL2 system

Win11 version number: Version    Windows 11 Home Chinese Version Version    22H2 Installation date    ‎2022/‎7/‎29 Operating system version&nbs...

More Recommendation

【win11】WSL installation ubuntu22.04

The deps of obs requires wsl ubuntu22.04 Search for: Windows features Windows features windows store Windows Subsystem for Linux Preview Open Windows Subsystem for Linux Preview ubuntu Proxy cannot be...

Centos 7 and the install dual system configuration

Ali configure yum source and source EPEL EPEL (Extra Packages for Enterprise Linux) Extended support package for the operating system, "Red Riding Hood line" for RHEL, CentOS and Scientific ...

Alibaba Cloud centOS 7 system install VMware14

The sky is blue, the wild is boundless, the wind blows the grass and the cows and sheep are low. Smile, less than ten years, don't smash the computer when you see through the world. Is life just learn...

Install jupyter notebook in CentOS 7 system

Install anaconda, download anaconda on the official website, and now the Tsinghua mirror has been deactivated anaconda official website:https://www.anaconda.com/distribution/#download-section Start th...

Install the distributed storage system Ceph on CentOS 7

There are a lot of introductions about Ceph on the Internet, so I won't repeat them here. Sage Weil developed this awesome distributed storage system when he was a PhD student. At first, he rushed to ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top