Last active
March 20, 2024 00:53
-
-
Save innomatics/4c9e5904b05c17f44131c6996fc1bf14 to your computer and use it in GitHub Desktop.
Install latest redis-cli on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
apt update | |
apt install -y lsb-release curl gpg | |
curl -fsSL https://packages.redis.io/gpg | 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" | tee /etc/apt/sources.list.d/redis.list | |
apt update | |
apt install -y redis-tools | |
redis-cli --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment