Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to install redis 2.7+ on ubuntu 12.04

I am new to redis. and I just followed cli to install redis sudo apt-get install redis. but the install server version is 2.2.12 . If I want to update this version and I want to install redis 2.7 + then how can I do this thing, please help. I am working on ubuntu 12.04

like image 699
Rohitashv Singhal Avatar asked Aug 20 '12 08:08

Rohitashv Singhal


2 Answers

You can install a Personal Package Archive to get the latest version. A popular one seems to be https://launchpad.net/~rwky/+archive/redis

edit: The one above is no longer maintained. Try https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server instead.

sudo apt-get -y install python-software-properties
sudo add-apt-repository -y ppa:chris-lea/redis-server
sudo apt-get -y update
sudo apt-get -y install redis-server

These commands installed the latest version for me at the time of writing.

like image 51
scampbell Avatar answered Sep 22 '22 13:09

scampbell


Ubuntu repositories have the 2.2 version of Redis as you discovered. If you want the latest version, you will have to download the sources from github and install it manually.

See "Installing Redis" section in the readme over here - https://github.com/antirez/redis

like image 45
Sripathi Krishnan Avatar answered Sep 24 '22 13:09

Sripathi Krishnan