Eric Guo's

Hoping writing JS, Ruby & Rails and Go article, but fallback to DevOps note

Upgrade Redis to 6.x on Ubuntu 20.04


Add the official beta apt source

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

Do install && restart

sudo apt-get update
sudo apt-get install redis
sudo systemctl restart redis

Original post