Multipackage Builds
Learn different ways of building multiple binary packages from a single source package.
Sometimes, it makes sense to generate multiple binary packages from a single source package. Reasons for that include:
-
It makes documentation, headers, or debug symbols optional to install.
-
It separates out the library and the executable when other applications might depend on the library but not the executable (for example
sqlite3
andlibsqlite3-0
). -
It separates static data out into a separate package to avoid multiple large architecture-dependent packages.
Building packages from one source package
We can build multiple binary packages from one source package by adding
several Package: <package-name>
sections to our debian/control
file.
Get hands-on with 1400+ tech skills courses.