# Disabling mender artifact compression under Yocto builds

**URL:** <https://hub.mender.io/t/disabling-mender-artifact-compression-under-yocto-builds/4234>\
**Category:** Yocto Project\
**Created:** [October 26, 2021, 4:26pm UTC](https://hub.mender.io/t/disabling-mender-artifact-compression-under-yocto-builds/4234 "2021-10-26T16:26:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtavares2](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jtavares2](https://hub.mender.io/u/jtavares2)\
**Post date:** [October 26, 2021, 4:26pm UTC](https://hub.mender.io/t/disabling-mender-artifact-compression-under-yocto-builds/4234/1 "2021-10-26T16:26:18Z")

</div>

Hello,

We have a use case where we would like the our `.mender` artifact and its internal contents to be completely uncompressed. This is because we can achieve dramatically better compression at a later stage of file distribution if the input file is uncompressed.

I see that there are MENDER\_ARTIFACT\_COMPRESSION and MENDER\_DISK\_COMPRESSION options for mender-convert (Debian) workflow, but I don’t see an equivalent option for Yocto workflows.

Upon inspection, I see that our .mender file itself is already an uncompressed tarball, but the `0000.tar.gz` disk image file within is compressed. We would like that file to be uncompressed, as well.

Does anyone have any tips to go about achieving this?

Thanks!  
James

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [October 26, 2021, 5:30pm UTC](https://hub.mender.io/t/disabling-mender-artifact-compression-under-yocto-builds/4234/2 "2021-10-26T17:30:53Z")

</div>

try adding the following to your local.conf:

`MENDER_ARTIFACT_EXTRA_ARGS_append = " --compression none"`

> **[Search · RegisterCompressor · mendersoftware/mender-artifact](https://github.com/mendersoftware/mender-artifact/search?q=RegisterCompressor)**
>
> Library for managing Mender artifact files. Contribute to mendersoftware/mender-artifact development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![jtavares2](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jtavares2](https://hub.mender.io/u/jtavares2)\
**Post date:** [November 5, 2021, 5:16am UTC](https://hub.mender.io/t/disabling-mender-artifact-compression-under-yocto-builds/4234/3 "2021-11-05T05:16:17Z")

</div>

> [@dellgreen](#):
>
> MENDER\_ARTIFACT\_EXTRA\_ARGS\_append = " --compression none"

That did the trick. Thanks!
