Разоблачаем магию deb-пакетов

habrahabr.ru · world
Full story

This guide explains how .deb packages work in Linux and argues that there is no magic behind them. It walks through turning a small C++ server into an installable package, adding a configuration file and a systemd unit, and handling dependencies and updates. It then covers automating the build and publishing the package to a custom APT repository so it can be installed with a single command. The material is presented as an interactive tutorial.

Дорогой читатель! Сегодня мы разберёмся, как устроены .deb-пакеты в Linux, и убедимся, что никакой магии в них нет. Превратим небольшой C++ - сервер в устанавливаемый пакет, добавим конфиг и systemd-юнит, разберёмся с зависимостями и обновлениями. Затем автоматизируем сборку и опубликуем пакет в своём APT-репозитории - чтобы устанавливать его одной командой. Интерактивный учебник - Открыть учебник Материалы статьи - Код и примеры на GitHub А ловко ты это придумал....

Read full article → Compare