diff --git a/docs/environment-setup.md b/docs/environment-setup.md index 3ac7416c78..697f580a0f 100644 --- a/docs/environment-setup.md +++ b/docs/environment-setup.md @@ -34,9 +34,28 @@ There are two methods to install Redis on Windows. We strongly recommend the fir ##### Option 1: Using [WSL2 (Windows Subsystem Linux)](https://docs.microsoft.com/en-us/windows/wsl/about) -1. Follow Microsoft WSL2 [installation guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to complete the installation -2. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. For example, if using Ubuntu, run `sudo apt-get install redis` -3. Suggest to install [Windows Terminal](https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-windows-terminal-optional), it facilitates you to switch directories between WSL2 Ubuntu bash and Windows drive +1. Follow Microsoft WSL2 [installation guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to complete the installation. Suggest to run the following once in the WSL2 environment. + +```bash +# fetch updated packages information +sudo apt update + +# upgrade or install outdated packages +sudo apt upgrade +``` + +1. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. You can check your distro's package manager [here](https://www.tecmint.com/linux-distro-for-power-users/). The two most common package manager are APT and DNF + +```bash +# for APT package manager +sudo apt-get install redis + +#for DNF package manager +sudo dnf install redis -y +``` + +2. Suggest to install [Windows Terminal](https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-windows-terminal-optional), it facilitates you to switch directories between WSL2 Ubuntu bash and Windows drive +3. Suggest to install [Node, nvm and npm for WSL2](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl#install-nvm-nodejs-and-npm), so as to be able to use Node and npm in the subsystem ##### Option 2: Using [Chocolatey package manager](https://chocolatey.org/) to install Redis on Windows @@ -123,7 +142,7 @@ _NOTE: This will not work on WSL (Windows Subsystem for Linux). Use the approach 1. Get [Docker for Desktop For Windows](https://hub.docker.com/editions/community/docker-ce-desktop-windows) 1. Docker for Desktop comes with docker-compose installed. -#### Windows 10 Home, Pro, Enterprise, or Education (Insiders / WSL 2 / Docker) +#### Windows 10 Home, Pro, Enterprise, or Education or Windows 11 (Insiders / WSL 2 / Docker) 1. If your [Windows build number](https://www.windowscentral.com/how-check-your-windows-10-build) is below [18917](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install/), join the [insiders program](https://insider.windows.com/en-us/). Then, update your machine to a newer build through Automatic Updates. 2. Once installed successfully, install [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/wsl2-install).