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.
apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Check full results below:
** NOTICE **
Redis now has an official APT repository. We urge users to use the APT repository, as described here:
https://redis.io/docs/getting-started/installation/install-redis-on-linux/
This PPA is still maintained but bugfix releases of older versions cannot be distributed here.
* * *
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.
It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.
Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
More info: https://launchpad.net/~redislabs/+archive/ubuntu/redis
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmpt5k_uhqr/pubring.gpg' created
gpg: /tmp/tmpt5k_uhqr/trustdb.gpg: trustdb created
gpg: key CC59E6B43FA6E3CA: public key "Launchpad PPA for Redis Labs" imported
gpg: Total number processed: 1
gpg: imported: 1
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: no valid OpenPGP data found.
And after run update and upgrade command, Redis not get upgraded to the latest version.