Search code examples
linuxredis

Linux - Install redis-cli only


I have a Linux server with Redis installed and I want to connect to it via command line from my local Linux machine.

Is it possible to install redis-cli only (without redis-server and other tools)?

If I just copy redis-cli file to my local machine and run it, I have the following error:

./redis-cli: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./redis-cli)

Solution

  • Ubuntu (tested on 14.04) has package called redis-tools which contains redis-cli among other tools. To install it type:

    sudo apt-get install redis-tools
    

    Note that on Ubuntu 16.04+ the command is a little bit different:

    sudo apt install redis-tools