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)
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?
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.
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.