Skip to content

Instantly share code, notes, and snippets.

@scottkf
Forked from jedi4ever/gist:944216
Created December 18, 2012 13:31
Show Gist options
  • Save scottkf/4327994 to your computer and use it in GitHub Desktop.
Save scottkf/4327994 to your computer and use it in GitHub Desktop.
VERSION=2.6.7
apt-get -y install wget
rm -rf redis-$VERSION
wget http://redis.googlecode.com/files/redis-$VERSION.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 -s dir -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