8

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

Rohitashv Singhal
  • 4,517
  • 13
  • 57
  • 105

3 Answers3

12

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.

Kris Peeling
  • 1,025
  • 8
  • 18
scampbell
  • 970
  • 7
  • 11
7

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

Sripathi Krishnan
  • 30,948
  • 4
  • 76
  • 83
0

Try either sudo apt-get install redis-server or http://laymansite.com/install-redis-in-ubuntu-12-04/

tk120404
  • 2,985
  • 1
  • 27
  • 28
Bhaveshkumar
  • 479
  • 4
  • 9