11

I'd like to install the newest Redis Server 7 on my Ubuntu 22.04 (I've already installed Redis Server version 6 via standard workflow with apt install).

I tried to use a Snap package from https://snapcraft.io/redis

But my Redis is still version 6 and folder /Snap/bin looks like this (there is no redis-server command)

enter image description here

So it seems like Snap installation didn't replace existing Redis Server 6 installation.

Maybe I should go with some custom ppa: repository?

What I have to do in order to update Redis Server to version 7?

Thank you!

Eddie R
  • 371

2 Answers2

13

Updated answer (Aug 2022):

Old answer works well, but now snap has Redis 7 (be careful, redis.conf is not in /etc/redis/ anymore)

sudo snap install redis

Original answer:

instructions

repo

sudo add-apt-repository ppa:redislabs/redis

sudo apt-get update

sudo apt-get install redis

Eddie R
  • 371
4

There is now an official Redis repo: https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-redis/install-redis-on-linux/#install-on-ubuntudebian

From that page:

curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

sudo apt-get update sudo apt-get install redis

bfontaine
  • 161
  • 12