This is an alternate method and Redis recommends it as it makes sure you get the latest stable version. Sometimes, the version provided by the distro’s repository may be outdated.
So you have to download the Redis source code and compile it. Make sure GCC compiler and libc is installed on your system.
:~$ wget http://download.redis.io/redis-stable.tar.gz
Next extract the tar file using the command below
tar xvzf redis-stable.tar.gz
It creates below folder go to that
Run the below command to install Redis
All tests passed without errors!
You need tcl 8.5 or newer in order to run the Redis test
sudo make test cd src && make test make: Entering directory '/home/imaginelinux/redis-stable/src' You need tcl 8.5 or newer in order to run the Redis test make: *** [Makefile:332: test] Error 1 make: Leaving directory '/home/imaginelinux/redis-stable/src' make: *** [Makefile:6: test] Error 2
Just type the below command to check the installation