LEARNING PATH
Debian Packaging: From Source to Repository
A practical, hands-on course that takes a Go application from source code to a Debian package and a signed APT repository.
About this course
Learn how Debian packages are structured, built, tested, and distributed. Throughout the course, we’ll develop a small Go command-line application called Syspeek, package it for Debian, and publish it through an APT repository managed with aptly.
You do not need to create a separate repository for the examples. Commands, configuration snippets, and code are presented directly in the lessons.
What you’ll learn
- Understand the relationship between
dpkg, APT, and Debian packages. - Prepare reproducible and isolated package build environments.
- Write Debian packaging metadata and build rules for a Go application.
- Test and validate binary and source packages.
- Create, sign, publish, and use an APT repository with aptly.
Prerequisites
Basic Linux command-line experience is recommended. Familiarity with Go is helpful, but the relevant application code is introduced as part of the course.
CURRICULUM
Course lessons
-
01
Introduction to Debian Packaging
Understand how Debian packages work, explore the relationship between APT and dpkg, and learn the fundamentals of software packaging on Debian.
-
02
Anatomy of a Debian Package
Explore the internal structure of Debian binary packages.
-
03
Preparing the Debian Packaging Environment
Install and configure the essential tools required to build, inspect, and validate Debian packages.
-
04
Isolated Build Environments
Learn why clean build environments matter and how to use sbuild to build Debian packages in an isolated environment.
-
05
Introducing Syspeek: Our Go Project
Build the foundation of Syspeek, a small Go command-line application that displays useful Linux system information.
-
06
The Debian Packaging Directory
A practical Debian packaging course lesson covering the debian packaging directory.
-
07
The Debian Control File
A practical Debian packaging course lesson covering the debian control file.
-
08
Changelog and Copyright
A practical Debian packaging course lesson covering changelog and copyright.
-
09
Rules and debhelper
A practical Debian packaging course lesson covering rules and debhelper.
-
10
Building the First DEB Package
A practical Debian packaging course lesson covering building the first deb package.
-
11
Packaging Go Applications
A practical Debian packaging course lesson covering packaging go applications.
-
12
Dependencies and Build Systems
A practical Debian packaging course lesson covering dependencies and build systems.
-
13
systemd, Configuration, and Permissions
A practical Debian packaging course lesson covering systemd, configuration, and permissions.
-
14
Patches and Source Management
A practical Debian packaging course lesson covering patches and source management.
-
15
Package Testing and Quality
A practical Debian packaging course lesson covering package testing and quality.
-
16
Source Packages and Signing
A practical Debian packaging course lesson covering source packages and signing.
-
17
Understanding APT Repositories
A practical Debian packaging course lesson covering understanding apt repositories.
-
18
Creating a Repository with aptly
A practical Debian packaging course lesson covering creating a repository with aptly.
-
19
Publishing and Signing the Repository
A practical Debian packaging course lesson covering publishing and signing the repository.
-
20
Installing and Updating Syspeek
A practical Debian packaging course lesson covering installing and updating syspeek.