LAST EDIT: Sunday, July 20th, 2008

Packaging - Quick Set-up for Ubuntu

This page details the packages needed to create a packaging/build environment under Ubuntu. Follow the instructions below to download the packages and set-up the environment.

1. Issue the following terminal command to download the required packages:

sudo apt-get install build-essential debhelper dh-make diff patch gnupg fakeroot lintian devscripts pbuilder dpatch dput

2. Create the pbuilder environment with the following command:

sudo pbuilder create

pbuilder Universe support

If you want to rebuild a package from universe or build a new one that needs a package out of main you will need to add this to ~/.pbuilderrc:

COMPONENTS="main restricted universe multiverse"

if [ "$DIST" == "etch" ]; then
    echo "Using a Debian pbuilder environment because DIST is $DIST"
    COMPONENTS="main contrib non-free"
fi

After adding the new sources you need to update the chroot, so that it picks up the new apt lines:

sudo pbuilder update --override-config

External Packaging Links

Tagged with: packaging, ubuntu


2 Responses to “Packaging - Quick Set-up for Ubuntu”

  1. Jason Liquorish wrote,

    Not that it does any harm but you have fakeroot listed twice in the apt-get install line.

  2. Philip wrote,

    I wondered how long it would take for someone to notice :P Thanks Jason.

Add Your Comment

Use the form below to add your comment. Markdown syntax is available. Note, comments are moderated by me for spam filtering. Alternatively, feel free to contact me privately.