# \#cpack:deb

**URL:** https://discourse.cmake.org/tag/cpack-deb/47.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [CPack Debian Packaging and RUNPATH/RPATH for dependencies picked up from IMPORTED\_RUNTIME\_ARTIFACTS](https://discourse.cmake.org/t/cpack-debian-packaging-and-runpath-rpath-for-dependencies-picked-up-from-imported-runtime-artifacts/8721)

<div class="topic-metadata">

**Author:** [@Joel](https://discourse.cmake.org/u/Joel)\
**Replies:** 1\
**Last updated:** [March 13, 2025, 3:32pm UTC](https://discourse.cmake.org/t/cpack-debian-packaging-and-runpath-rpath-for-dependencies-picked-up-from-imported-runtime-artifacts/8721 "2025-03-13T15:32:33Z")

</div>

Hi, I’m trying to get cmake to package my Linux executable (+ dependent libraries) as a deb package. The executable should live in /opt/foo/bin and the libraries it depends on should live in /opt/foo/lib. However, I’m…

---

## [CPack/install oddity with "overridden" install directive](https://discourse.cmake.org/t/cpack-install-oddity-with-overridden-install-directive/10349)

<div class="topic-metadata">

**Author:** [@robiwano](https://discourse.cmake.org/u/robiwano)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 7:45pm UTC](https://discourse.cmake.org/t/cpack-install-oddity-with-overridden-install-directive/10349 "2024-03-12T19:45:22Z")

</div>

Hi, I have a project where I generate a Debian package, and I have a default install directive for a logotype file: install(FILES assets/logo.png DESTINATION www/assets COMPONENT Assets ) Then, later on an…

---

## [CPackDeb default when dpkg not found](https://discourse.cmake.org/t/cpackdeb-default-when-dpkg-not-found/9755)

<div class="topic-metadata">

**Author:** [@hpkfft](https://discourse.cmake.org/u/hpkfft)\
**Replies:** 4\
**Last updated:** [January 5, 2024, 2:01am UTC](https://discourse.cmake.org/t/cpackdeb-default-when-dpkg-not-found/9755 "2024-01-05T02:01:55Z")

</div>

The documentation at deb indicates that CPACK\_DEBIAN\_PACKAGE\_ARCHITECTURE defaults to i386 when dpkg is not found. However, the execute\_process() on line 459 in the file cmake-3.25/Modules/Internal/CPack/CPackDeb.cmake …

---

## [Creating multiple monolithic packages (deb)](https://discourse.cmake.org/t/creating-multiple-monolithic-packages-deb/9457)

<div class="topic-metadata">

**Author:** [@mirni](https://discourse.cmake.org/u/mirni)\
**Replies:** 1\
**Last updated:** [November 19, 2023, 2:46am UTC](https://discourse.cmake.org/t/creating-multiple-monolithic-packages-deb/9457 "2023-11-19T02:46:58Z")

</div>

Hi all, I need to create multiple standalone (self-contained, monolithic) debian packages, by “monolithic” I mean that the package contains everything it needs for the binaries to run. The premise of cmake/cpack is tha…

---

## [CPackDeb: file utility is not available. CPACK\_DEBIAN\_PACKAGE\_SHLIBDEPS and CPACK\_DEBIAN\_PACKAGE\_GENERATE\_SHLIBS options are not available](https://discourse.cmake.org/t/cpackdeb-file-utility-is-not-available-cpack-debian-package-shlibdeps-and-cpack-debian-package-generate-shlibs-options-are-not-available/9407)

<div class="topic-metadata">

**Author:** [@paulbourelly999](https://discourse.cmake.org/u/paulbourelly999)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 8:38pm UTC](https://discourse.cmake.org/t/cpackdeb-file-utility-is-not-available-cpack-debian-package-shlibdeps-and-cpack-debian-package-generate-shlibs-options-are-not-available/9407 "2023-11-10T20:38:41Z")

</div>

When installing CMake via the github release artifact as follows: CMAKE\_VERSION="3.27.7" echo "Installing CMake ${CMAKE\_VERSION}" wget https://github.com/Kitware/CMake/releases/download/v${CMAKE\_VERSION}/cmake-${CMAKE\_V…

---

## [(CPack) Package subdirectories into two packages](https://discourse.cmake.org/t/cpack-package-subdirectories-into-two-packages/8646)

<div class="topic-metadata">

**Author:** [@Beanavil](https://discourse.cmake.org/u/Beanavil)\
**Replies:** 1\
**Last updated:** [July 31, 2023, 10:58pm UTC](https://discourse.cmake.org/t/cpack-package-subdirectories-into-two-packages/8646 "2023-07-31T22:58:15Z")

</div>

I am working with 3 repositories, adding DEB packaging for the three of them. One of them (let’s call it project X) is packaged into two packages using two components: runtime and dev. Now I have a repo that adds the th…

---

## [Grouping hierarchy in debian packages](https://discourse.cmake.org/t/grouping-hierarchy-in-debian-packages/8084)

<div class="topic-metadata">

**Author:** [@kingtim](https://discourse.cmake.org/u/kingtim)\
**Replies:** 3\
**Last updated:** [May 10, 2023, 11:03am UTC](https://discourse.cmake.org/t/grouping-hierarchy-in-debian-packages/8084 "2023-05-10T11:03:26Z")

</div>

I’d like to build 2 debian packages: A Runtime package which has some files and a Develop package. Which has ALL the files from the Runtime package as well as some additional files. Is this possible? With CPack i’d exp…

---

## [CPackDeb : is it possible to generate .changes and .buildinfo files ?](https://discourse.cmake.org/t/cpackdeb-is-it-possible-to-generate-changes-and-buildinfo-files/6701)

<div class="topic-metadata">

**Author:** [@Ubiquite](https://discourse.cmake.org/u/Ubiquite)\
**Replies:** 1\
**Last updated:** [October 20, 2022, 5:26pm UTC](https://discourse.cmake.org/t/cpackdeb-is-it-possible-to-generate-changes-and-buildinfo-files/6701 "2022-10-20T17:26:27Z")

</div>

Hi Is it possible to generate .changes and .buildinfo files while using CPackDeb ? With dpkg-genbuildinfo and dpkg-genchanges ? This files seems necessary to publish the .deb for reprepo. Regards

---

## [CPack Debian package.links Support](https://discourse.cmake.org/t/cpack-debian-package-links-support/6199)

<div class="topic-metadata">

**Author:** [@codeInnovation](https://discourse.cmake.org/u/codeInnovation)\
**Replies:** 1\
**Last updated:** [August 2, 2022, 11:17am UTC](https://discourse.cmake.org/t/cpack-debian-package-links-support/6199 "2022-08-02T11:17:32Z")

</div>

The CPACK\_DEBIAN\_PACKAGE\_CONTROL\_EXTRA variable can be used to specify other files such as a postinst script. When I also store a path in CPACK\_DEBIAN\_PACKAGE\_CONTROL\_EXTRA to a links file I expected CPack to create the…
