# How to Remove (or not install) Packages in Mender Image (Yocto Sumo)

**URL:** <https://hub.mender.io/t/how-to-remove-or-not-install-packages-in-mender-image-yocto-sumo/845>\
**Category:** General Discussions\
**Tags:** yocto, sumo\
**Created:** [July 22, 2019, 6:38pm UTC](https://hub.mender.io/t/how-to-remove-or-not-install-packages-in-mender-image-yocto-sumo/845 "2019-07-22T18:38:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbawebba](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@robbawebba](https://hub.mender.io/u/robbawebba)\
**Post date:** [July 22, 2019, 6:38pm UTC](https://hub.mender.io/t/how-to-remove-or-not-install-packages-in-mender-image-yocto-sumo/845/1 "2019-07-22T18:38:10Z")

</div>

Hello,

I currently use the Sumo branch of meta-mender, along with my distro inheriting “mender-full” in order to generate mender artifacts for OTA updates of my root filesytem.

There are a couple of packages containing test scripts that I only want to install in my full image and not in the mender artifact. Is there a way I could prevent these packages from being installed in the mender image, such as the `IMAGE_INSTALL_remove` bitbake variable?

Thanks in advance for any help!

Cheers,  
Rob Weber

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [July 22, 2019, 7:57pm UTC](https://hub.mender.io/t/how-to-remove-or-not-install-packages-in-mender-image-yocto-sumo/845/2 "2019-07-22T19:57:04Z")

</div>

The Mender artifact is intentionally identical to the sdimg as it uses the same block image for both.

You could do your initial build with the test scripts and provision the board with the sdimg, and then do another build with the scripts removed that you use for OTA updates. Basicallly the initial provisioning would have them and you could run your tests but then on the first OTA update they would effectively be removed.
