skip to Main Content

How can I install redis-cli only on CentOS, I know how to do it on ubuntu "sudo apt-get install redis-tools" but looking for similar package for CentOS.

2

Answers


  1. I am familiar with this approach:

    wget http://download.redis.io/redis-stable.tar.gz
    tar xvzf redis-stable.tar.gz
    cd redis-stable
    make
    cp src/redis-cli /usr/local/bin/
    chmod 755 /usr/local/bin/redis-cli
    

    as you can see above, here you have to compile the source code using make. You hence need to make sure that you have c compiler on your OS. If you do not, then this can help you:

    sudo yum install gcc
    

    Also be aware, that this approach will also create another executables in src/ folder. I recommend you to check this out here.

    hope it helped, have a nice day!

    Login or Signup to reply.
  2. If you are using amzn linux 2:

    sudo amazon-linux-extras install epel -y
    sudo yum update
    sudo yum install redis
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search