3

This is a strange thing. Ubuntu is so widely used, but it is hard to find packages for popular software.

For example, when you search http://software.opensuse.org you can find a package for redis: http://download.opensuse.org/repositories/server:/database/openSUSE_11.4/src/

This is a good expirience.

Where to find the latest version of the redis package for Ubuntu?

3 Answers3

2

One way to find out if a ppa exists is performing a search on launchpad:

https://launchpad.net/ubuntu/+ppas?

This will show you quite a lot of sources from where you may be able to install the version you need. Simply choose an archive you trust (e.g ppa:rwky/redis).

Takkat
  • 144,580
2

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:

  1. Go to the webpage for the package in the repo: http://packages.debian.org/experimental/redis-server

  2. 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.

  3. 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.

  4. Enter the directory of the sources:

    cd redis-2.4.0~rc5

  5. 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).

  6. You few have you shiny new DEB files in the parent directory :)

    cd ..

    ls *.deb

1

You can install it via repos:

sudo apt-get install redis-server

http://packages.ubuntu.com/search?suite=lucid&searchon=names&keywords=redis

heartsmagic
  • 5,370