8

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!

0

2 Answers 2

12

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
1
  • actually I would be reluctant pulling from this ppa since the source is not the same as the one on the redis website
    – lasec0203
    Jun 9, 2022 at 0:51
2

There is now an official Redis repo: https://redis.io/docs/install/install-redis/install-redis-on-linux/

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .