# Collision error with two packages that provide an executable with the same name

**URL:** <https://discourse.flox.dev/t/collision-error-with-two-packages-that-provide-an-executable-with-the-same-name/1080>\
**Category:** Help\
**Created:** [February 12, 2025, 8:31pm UTC](https://discourse.flox.dev/t/collision-error-with-two-packages-that-provide-an-executable-with-the-same-name/1080 "2025-02-12T20:31:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![will.gorman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/will.gorman/32/712_2.png) [@will.gorman](https://discourse.flox.dev/u/will.gorman)\
**Post date:** [February 12, 2025, 8:31pm UTC](https://discourse.flox.dev/t/collision-error-with-two-packages-that-provide-an-executable-with-the-same-name/1080/1 "2025-02-12T20:31:01Z")

</div>

Both the teleport and temporal-cli packages include an executable named `tctl` and attempting to install them both into the same environment results in this error:

```auto
environment> error: collision between `/nix/store/aw9zjxk0s7k0l2l1sx8lrs9ms4acihxj-temporal-cli-1.18.0/bin/tctl' and `/nix/store/ak4nmpqijdvj3kf5gq1j8a2vy9cnz24i-teleport-14.3.0/bin/tctl'

```

Is there any way to work around this? Can flox be configured to rename the symlink to the /nix/store path for one of the packages to something else?

I found [How to solve a collision error when installing some packages](https://discourse.flox.dev/t/how-to-solve-a-collision-error-when-installing-some-packages/673) for a similar sounding error but that looks like it was a bug that doesn’t apply here.

---

<div class="post-metadata">

**Author:** ![mkenigs](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/mkenigs/32/520_2.png) [@mkenigs](https://discourse.flox.dev/u/mkenigs)\
**Post date:** [February 12, 2025, 10:24pm UTC](https://discourse.flox.dev/t/collision-error-with-two-packages-that-provide-an-executable-with-the-same-name/1080/2 "2025-02-12T22:24:10Z")

</div>

You can add a priority for each package, e.g. if you want `teleport` to win you could say:  
`teleport.priority = 1`

The default priority is 5. Packages with a lower `priority` value will take precedence over packages with higher `priority` values.
