To build Redis from source, we first need to install TCL 8.5 or newer, this is needed for make test later:
$ sudo apt-get install -ytcl
Now clone and make:
$ git clone https://github.com/antirez/redis
$ git checkout 2.8.13
$ make test
$ sudo make install
$ sudo utils/install_server.sh
Binary (redis-cli and redis-server) will be installed into /usr/local/bin.
The last command with utils/install_server.sh is an interactive command. Since the script is a shell script using the read built-in command and -p option for prompt, we can make it non-interactive by redirecting input from echo command:
$ echo -n | sudo utils/install_server.sh
Without pumping any value into the script, the default values are used.
If really want to customize it, we can add our own values: