Installing Redis on Ubuntu with APT

Deciding to use APT to maintain your software is really a no-brainer if you are Debian based. I prefer Ubuntu myself and its repositories has a lot of toys in them but for stability reasons they often do not hold the very latest versions.

Earlier today I was looking for an alternative repository for Redis and luckily I ran into Dotdeb. They have a bunch of nice packages, including Redis 2.2.13!

Installation

In order to get in on this goodness you must first add the Dotdeb repositories to your APT sources.

# /etc/apt/sources.list.d/dotdeb.org.list
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

Then you need to authenticate these repositories using their public key.

wget -q -O - http://www.dotdeb.org/dotdeb.gpg | sudo apt-key add

And finally, after bringing your local cache up to date, you can install Redis through APT.

$ sudo aptitude update
$ sudo aptitude install redis-server

Happy key-value-storing!