# CPack Debian package.links Support

**URL:** https://discourse.cmake.org/t/cpack-debian-package-links-support/6199
**Category:** Usage
**Tags:** cpack:deb
**Created:** [August 1, 2022, 12:57pm UTC](https://discourse.cmake.org/t/cpack-debian-package-links-support/6199 "2022-08-01T12:57:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![codeInnovation](https://discourse.cmake.org/user_avatar/discourse.cmake.org/codeinnovation/32/2644_2.png) [@codeInnovation](https://discourse.cmake.org/u/codeInnovation)
#### Post date: [August 1, 2022, 12:57pm UTC](https://discourse.cmake.org/t/cpack-debian-package-links-support/6199/1 "2022-08-01T12:57:08Z")

</div>

The [CPACK\_DEBIAN\_PACKAGE\_CONTROL\_EXTRA](https://cmake.org/cmake/help/v3.6/module/CPackDeb.html#variable: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 specified symlinks within the Debian package; however, it does not. Instead it stores the `links` file in the control.tar.gz. Does CPack support the Debian `links` other file? If not, is there some other technic for installing symlinks with CMake / CPack besides creating them in the post install script?

The Debian package info is [here](https://www.debian.org/doc/manuals/maint-guide/dother.en.html#links).

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [August 2, 2022, 11:17am UTC](https://discourse.cmake.org/t/cpack-debian-package-links-support/6199/2 "2022-08-02T11:17:32Z")

</div>

Cc: @kyle.edwards
