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.
Download Redis
:~$ 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
cd redis-stable
Run the below command to install Redis
make install
Installation completed.e
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[1]: Entering directory '/home/imaginelinux/redis-stable/src' You need tcl 8.5 or newer in order to run the Redis test make[1]: *** [Makefile:332: test] Error 1 make[1]: Leaving directory '/home/imaginelinux/redis-stable/src' make: *** [Makefile:6: test] Error 2
Just type the below command to check the installation
redis-server