⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

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

habrahabr.ru ·Russian Federation · world
Words
68
Chars
471
AI summary
Yes
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 А ловко ты это придумал....

Open article