Upgrading Redis Manually

I will write the fancy content of this documentation at later stage. For as of now the below code works for Ubuntu 20.4 users to update Redis to the latest version - 6.xx

To check current installed redis server version

redis-server --version

To check current installed redis cli version

redis-cli --version

To update redis to the latest available version (adding official repo first)

sudo add-apt-repository ppa:redislabs/redis

Then run update command

sudo apt update

And run the upgrade

sudo apt upgrade
2 Likes

For centos 7:


sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum --enablerepo=remi install redis 

@die2mrw007 add the centos part in your content and also may be the lsphp Redis extention

1 Like

One question - it asked whether I wanted to replace or keep a config file. I kept mine. Should I have replaced it in order to take advantage of any particular features?

There shouldn’t be any such replace files for redis upgrading. Can you list which is the file it is asking to be replaced? I will have a check.

I will add all those very soon.

It looks like it only prompts you if you have modified it, which I had done in order to add a password and some other things.
image

I just downloaded and compared the files and it adds quite a lot - it goes from 61 to 93kb. It is mostly just additional commentary/documentation, but there’s also at least 20 new settings and some settings even have their default value changed.

I assume that if you are not prompted, it will change the file automatically on upgrade. But if you are prompted, it would be best to replace the file and then make your custom edits as-needed.

1 Like

FYI @die2mrw007 there are new instructions from redis on how to install the latest version

Install Redis on Linux | Redis

1 Like

Got any idea how to upgrade it on Almalinux 8?
Atm the latest installed is 5.0.3 and the latest version I’ve seen is 7.0.4

Redis server v=5.0.3 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=14b81d825631ff0c

This seems to be the working upgrade way on Almalinux 8.6

dnf module reset redis
sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
dnf module enable redis:remi-7.0
dnf upgrade
systemctl restart redis