Skip to content

Instantly share code, notes, and snippets.

@pilot
Forked from jedi4ever/gist:944216
Created September 10, 2013 09:39
Show Gist options
  • Save pilot/6507167 to your computer and use it in GitHub Desktop.
Save pilot/6507167 to your computer and use it in GitHub Desktop.
VERSION=2.2.5
apt-get -y install wget
rm -rf redis-$VERSION
wget http://redis.googlecode.com/files/redis-2.2.5.tar.gz -O redis-$VERSION.tar.gz
tar -xzvf redis-$VERSION.tar.gz
cd redis-$VERSION
./configure --prefix=/usr
make
rm -rf /tmp/redis-$VERSION.$$
mkdir /tmp/redis-$VERSION.$$
mkdir -p /tmp/redis-$VERSION.$$/usr/bin
mkdir -p /tmp/redis-$VERSION.$$/etc
cp src/{redis-benchmark,redis-check-aof,redis-check-dump,redis-cli,redis-server} /tmp/redis-$VERSION.$$/usr/bin
cp redis.conf /tmp/redis-$VERSION.$$/etc/redis.conf
cd ..
fpm -sdir -t deb -n redis -v $VERSION -C /tmp/redis-$VERSION.$$ -p redis-VERSION_ARCH.deb usr/bin
rm -rf /tmp/redis-$VERSION.$$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment