Skip to content

Commit

Permalink
Adding suggestions to update outdated package on WSL2 and how to inst…
Browse files Browse the repository at this point in the history
…all Redis base on different distro's package manager
  • Loading branch information
tpmai22 committed Oct 27, 2021
1 parent dfb080e commit 77d1d0e
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions docs/environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 77d1d0e

Please sign in to comment.