# How install packages into Target?

**URL:** <https://forum.legato.io/t/how-install-packages-into-target/2806>\
**Category:** Uncategorized\
**Created:** [November 22, 2017, 10:09am UTC](https://forum.legato.io/t/how-install-packages-into-target/2806 "2017-11-22T10:09:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![codegit001](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@codegit001](https://forum.legato.io/u/codegit001)\
**Post date:** [November 22, 2017, 10:09am UTC](https://forum.legato.io/t/how-install-packages-into-target/2806/1 "2017-11-22T10:09:35Z")

</div>

lets say I want to install gdbserver; apt-get is not recognized by Legato. So how will I do that ? Also gdbserver is not recognized by the framework.

---

<div class="post-metadata">

**Author:** ![Vasantha\_lax](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@Vasantha\_lax](https://forum.legato.io/u/Vasantha_lax)\
**Post date:** [November 22, 2017, 11:47am UTC](https://forum.legato.io/t/how-install-packages-into-target/2806/2 "2017-11-22T11:47:12Z")

</div>

apt-get is not supported in Legato. If any package needs to be added it has to be included using Yocto recipe.

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [November 22, 2017, 11:08pm UTC](https://forum.legato.io/t/how-install-packages-into-target/2806/3 "2017-11-22T23:08:54Z")

</div>

As for gdbserver, it is packaged into the `devMode` application, that is built by default and can be installed according to this doc: [Developer Mode - Legato Docs](http://legato.io/legato-docs/latest/basicTargetDevMode.html)

Otherwise as noted by @Vasantha_lax, the rootfs is a relatively closed system, on purpose.

To add new software, either:

- build it and package it with a/your Legato app (preferred), using [externalBuild section](http://legato.io/legato-docs/latest/defFilesCdef.html#defFilesCdef_externalBuild) for instance
- use the [“Legato Linux Source distribution for wp85”](https://source.sierrawireless.com/resources/legato/download/legatolinuxdist9x15/) (yocto based) to add content to the rootfs
