Ubuntu – How to use LaunchPad.net packages in 11.04

11.04launchpadpackage-management

LaunchPad.net is a fantastic repository of packages, and one that I use often to install packages that are not included in the main repository. Thus far, I've always simply browsed to a package page (e.g. https://launchpad.net/ubuntu/natty/amd64/python-reportlab/2.5-1ubuntu1) and manually downloaded the Deb file, which kicks off the Ubuntu Software Center and lets me easily install the package.

It would be even cooler if I could use LaunchPad.net as a regular apt source, i.e. by doing something like this:

echo 'deb https://launchpad.net/ubuntu natty amd64' | sudo tee -a /etc/apt/sources.list

Does anyone know what the correct sources line would be?

Best Answer

You can not add Launchpad itself as a source but you can add specfic PPA's sources for packages.

For instance the Launchpad Project Old and New Python Versions has a PPA settings block where it details the information needed to add that PPA to your software sources

enter image description here

By doing so, the packages listed on this page will be made available to you.

If you can figure out what DEB goes first here is a list of all the DEBs you need for python 2.5: packages Open the 'python2.5 - 2.5.5-8~ppa2~natty3' and you get to see all the DEBs involved!

Related Question