Building a package from Squeeze on Lenny

Ensure that a sources entry for Squeeze (Testing) exists in /etc/apt/sources.list:

deb-src squeeze main contrib non-free

Run (as root):

apt-get update

Run (as root):

apt-get install fakeroot

Run (as root):

apt-get build-dep imagemagick

Change to a directory you'll be using for building.

For the next part you can be a regular user.

Run (which should automatically pick up the version from Testing)

apt-get source imagemagick

if not run

apt-get -t squeeze source imagemagick

This will download and unpack the latest source package. CD into the directory created that contains the unpacked source (imagemagick- as of this writing)

cd imagemagick-*


fakeroot debian/rules binary

and if all goes well, cd ..

In that directory will be a set of imagemagick debs that have only build-dependencies from Lenny (i.e. you just backported imagemagick for your environment).

As root again, run

dpkg -i *.deb
/var/customers/webs/cw01/wiki/data/pages/debian/build_a_package_from_squeeze.txt · Last modified: 2010/10/25 11:38 by wadmin
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki