Recompile Debian / Ubuntu packages

Download and recompile package

Install build essential meta package

Change working directory

Download Debian source package, in this example rsync

The package source and patches should be downloaded in the current directory, show downloaded files

rsync_3.0.9.orig.tar.gz: source code from project upstream (rsync.samba.org)

rsync_3.0.9-1ubuntu1.ds:  description

rsync_3.0.9-1ubuntu1.diff.gz: modification from distribution maintainer (Ubuntu)

rsync-3.0.9: source code with applied patches, is 1:1 the source of the .deb package




Install build dependencies

Change into the rsync source directory

Recompile package

Create binary (deb package)

On finish the deb package should be created in our the working directory (/usr/local/src)

Install package

Modify and recompile package

Install developer scripts

Modify some configure options, as example add –disable-acl-support –disable-ipv6 –disable-xattr-support

Update changelog file and give the name mypackage for the local name part

Recompile modified package

Create binary (deb package)

On finish the deb package should be created in our the working directory (/usr/local/src)

Install package

If you install a package with a local part, apt will no more update this package with apt-get upgrade.