Skip to content

Instantly share code, notes, and snippets.

@sattellite
Forked from jedi4ever/gist:944216
Last active August 29, 2015 13:56
Show Gist options
  • Save sattellite/8930356 to your computer and use it in GitHub Desktop.
Save sattellite/8930356 to your computer and use it in GitHub Desktop.
Create deb for redis
VERSION=2.8.5
apt-get -y install wget
rm -rf redis-$VERSION
wget http://download.redis.io/releases/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