Building debian packages from source

I will show how to build a debian package from source, needed if you need to apply a custom patch to some package.

1. Download the debian source

# apt-get source package-name

2. Download the dependencies required to build the source

# apt-get build-dep package-nam

3. Patch the source as needed.

4. Build the debian package:

# cd source-dir
# debuild -us -uc

The recompiled .deb file will be in the parent directory, you can install it with dpkg as usual.

This entry was posted in linux, minipost. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>