Posts about Debian-howto

  • HOWTO: Build debian packages for simple shell scripts

    This post goes over the creation of a debian package containing shell scripts using dh_make and debuild. Starting from structuring the packaging directory to building the final debian package, this tutorial covers the process of creating a debian package with just a few simple steps.

  • APT 1.2.10 backport for Ubuntu Trusty (14.04) and Ubuntu Precise (12.04)

    Summary We’re excited to announce that we’ve backported APT 1.2.10 to Ubuntu Trusty (14.04) and Ubuntu Precise (12.04)! This version of APT includes a new feature called Acquire-by-hash which completely eliminates the “Hash sum mismatch” errors. You can read more about this APT feature on our blog. Get your own atomic APT repository in seconds!...

  • APT Hash sum mismatch

    NOTE we recently blogged about another more serious cause for APT’s Hash sum mismatch bug and we’ve backported APT 1.2.10 to Ubuntu 12.04 (Precise) and Ubuntu 14.04 (Trusty) which includes bug fixes for the bug mentioned in this post and many exciting new features. APT repository can be provided uncompressed or compressed in a...

  • Inspecting and extracting Debian package contents

    This post covers how to list and extract the contents of a Debian package. There will be examples used to show how to list the contents of debian packages that are installed and not-installed on a system, as well as, how to extract the debian control information and program files. Related Post Inspecting and...

  • Using dh-make to prepare debian packages

    This blog post will cover some basics about debian package names and version strings, and how to build debian packaging boilerplate using dh_make to streamline the creation of packages. Install the packaging essentials $ sudo apt-get install build-essential dh-make Understanding the package name and version Let’s assume we have an upstream source with the...

  • Building debian packages with debuild

    This post will walk you through creating a debian package from a simple hello world C program using debuild. Setup On a debian-based system, install the following programs: $ sudo apt-get install devscripts build-essential lintian Upload your Debian packages to a free repository in seconds. Sign up! The debuild tool debuild is a convenient...

  • Building Debian and Ubuntu packages with pbuilder

    pbuilder is a tool for building Debian and Ubuntu packages. You can use pbuilder to build packages for many different versions of Debian and Ubuntu. The main advantage of using pbuilder to build Debian and Ubuntu packages instead of debuild is that pbuilder builds Deb packages in a cleanroom environment. pbuilder does this by...

  • Using apt-cacher-ng with SSL/TLS

    apt-cacher-ng is a write-through proxy that caches repository metadata and package indexes for other hosts, typically on the same network. It generally works out-of-the-box, except for when the repository is served over SSL/TLS, in which case special configuration is needed. This blog post will cover apt-cacher-ng basics, then how to set it up to...

  • Working with Debian and Ubuntu Source Packages

    What are source packages? A package is a collection of binaries, scripts, and associated data that is installed by your package manager. Packages are typically generated from source code and a set of a metadata written by the package maintainer. Occasionally, the source may by patched by the package maintainer at build time. A source...

  • APT Cheat Sheet

    Getting Started: What does APT do? APT is a set of core tools found inside the Debian operating system. It provides utilities for the installation and removal of software packages and dependencies on a system. apt-get / high level package handling utility apt-get is the command-line tool for handling packages and provides functions such as...

  • Cook your own packages: Getting more out of fpm

    Guest post This is a guest post by Mathias Lafeldt, an Infrastructure Developer living in Hamburg, Germany. Mathias likes to blog and tweet about all things infrastructure automation. One of the areas he’s passionate about is packaging. While he knows a lot about building Debian packages, he loves to use packagecloud for hosting them. Introduction...

  • HOWTO: GPG sign and verify deb packages and APT repositories

    GPG can be used to create a digital signature for both Debian package files and for APT repository metadata. Many Debian-based Linux distributions (e.g., Ubuntu) have GPG signature verification of Debian package files (.deb) disabled by default and instead choose to verify GPG signatures of repository metadata and source packages (.dsc). The setting which...