It's actually very easy to recompile a DEB package. You can search the Ubuntu repos at http://packages.ubuntu.com or the Debian repo at http://packages.debian.org to see if there's a later version available in a newer release.
In the experimental repo of Debian, there's version 2.4.0 of the redis-server
package, so this is how you can recompile the DEB package for Ubuntu 10.04:
Go to the webpage for the package in the repo: http://packages.debian.org/experimental/redis-server
In the right sidebar, you should see a heading Download Source Package redis:. Copy the link for the .dsc
file and run:
mkdir ~/sources/redis
#Create a working directory for compiling
dget http://ftp.de.debian.org/debian/pool/main/r/redis/redis_2.4.0~rc5-1.dsc
The dget
command will download all three source package files from the repo, so you don't have to download them manually.
Extract all the sources:
dpkg-source -x redis_2.4.0~rc5-1.dsc
#Using dpkg-source will extract both tarballs automatically and apply the patches from Debian or Ubuntu.
Enter the directory of the sources:
cd redis-2.4.0~rc5
Now compile the package:
dpkg-buildpackage -us -uc -b
-us
and -uc
means that it won't try to sign the packages using a GPG key (which is unnecessary unless you are creating your own repo). -b
means don't create the .dsc
files and the source tarballs (since they already exist).
You few have you shiny new DEB files in the parent directory :)
cd ..
ls *.deb