Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
Created April 27, 2011 13:08
Show Gist options
  • Save jedi4ever/944216 to your computer and use it in GitHub Desktop.
Save jedi4ever/944216 to your computer and use it in GitHub Desktop.
build .deb for redis via fpm
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