Installing Grails on Debian Squeeze using the Ubuntu PPA

If you want to set up a CI server like Jenkins or Bamboo on Debian Squeeze and you want to use it to build Grails projects, you'd probably prefer to install Grails the Debian way. Well, good news, thanks to the groovy-dev Ubuntu PPA you can.

The trick is to add the deb line for the Lucid PPA to your /etc/apt/sources.list, import the required GPG key and update your package list, like so (be sure to run these commands as root):

echo "deb http://ppa.launchpad.net/groovy-dev/grails/ubuntu lucid main" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E354FBD902A9EC29
apt-get update

Now installing for example Grails 2.0.0.M1 is done like this:

apt-get install grails-2.0.0

You can also run multiple versions of Grails, the same way you would do it on Ubuntu.