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
Asked
Active
Viewed 9,134 times
8

Rohitashv Singhal
- 4,517
- 13
- 57
- 105
-
Belongs on [AskUbuntu.SE](http://askubuntu.com/). – Esoteric Screen Name Aug 20 '12 at 19:16
-
3I came here (via Google) hoping to find the command to install redis and it's actually `sudo apt-get install redis-server` – Hengjie Jan 24 '13 at 06:14
-
I have installed redis using `sudo apt-get install redis-server ` but I am receiving this error: `ImportError: No module named redis ` – Mona Jalal Oct 10 '13 at 06:43
-
See http://askubuntu.com/q/88265/30354 – phs Oct 15 '13 at 04:08
3 Answers
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