# Using Debian Advanced Package Tool (APT) for Apama on thin-edge.io

**URL:** <https://community.cumulocity.com/t/using-debian-advanced-package-tool-apt-for-apama-on-thin-edge-io/7844>\
**Category:** Knowledge Base\
**Tags:** Streaming-Analytics-Apama, thin-edge-io, cumulocity\
**Created:** [November 22, 2022, 4:52pm UTC](https://community.cumulocity.com/t/using-debian-advanced-package-tool-apt-for-apama-on-thin-edge-io/7844 "2022-11-22T16:52:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rupert\_Summerton](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@Rupert\_Summerton](https://community.cumulocity.com/u/Rupert_Summerton)\
**Post date:** [November 22, 2022, 4:52pm UTC](https://community.cumulocity.com/t/using-debian-advanced-package-tool-apt-for-apama-on-thin-edge-io/7844/1 "2022-11-22T16:52:40Z")

</div>

Apama 10.15.0.2 now supports the Debian advance package tool (APT) for the installation of Apama software and projects on thin-edge devices running on Debian operating systems. This process can be managed entirely using the Device Management app in your Cumulocity IoT tenant. Once your thin-edge device is set up, there is no further need to use the command line on your device. Instead, the following steps should be used to install support for Apama on thin-edge and individual Apama projects. Please note that when installing Apama projects, the projects must be compressed in ZIP format.

## Set up the repository from which the packages will be installed

1. In the Cumulocity IoT tenant, open the **Device Management** app, go to the **Management** menu option and select the **Software**  **repository**.
2. Click **Add software** at the right of the top menu bar.
3. In the **ADD SOFTWARE** dialog enter the following details:

- **Software** : apama-repo
- **Description** : apama-repo (or something else if you choose)
- **Device Filter Type** : (leave empty)
- **Software Type** : apt
- **Version** : 2022::apt
- **SOFTWARE FILE** : check the **Provide a file path** option and enter the URL: [https://downloads.apamacommunity.com/debian/apama-repo\_2022\_all.deb](https://downloads.apamacommunity.com/debian/apama-repo_2022_all.deb)

1. Click the **Add Software** button.
2. Now select the **Devices** menu option and then select **All devices**.
3. In the list of devices, select the thin-edge device installed previously.
4. In the sub-menu for the device, select the **Software** option.
5. Click the **Install software** button in the bottom left; the apama-repo should be listed.
6. Click the drop-down arrow on the right and check the 2022::apt radio button. Then, click **Install**.
7. Finally, click the **Apply changes** button in the lower right of the panel.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/d/3/d384516fbc56e70fea14300d8e80d5fdc9a325bd.png)

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/f/e/fe6613d4ad81691e0b94aaef9b20020687021dc2.png)

## Add the Apama thin-edge support package to the tenant software repository and deploy it to thin-edge

1. Return to the **Device Management** app and go to the **Management** menu option and select the **Software repository**.
2. Click **Add software** at the right of the top menu bar.
3. In the **ADD SOFTWARE** dialog enter the following details:

- **Software** : apama-thin-edge-support
- **Description** : apama-thin-edge-support (or something else if you choose)
- **Device Filter Type** : (leave empty)
- **Software Type** : apt
- **Version** : ::apt
- **SOFTWARE FILE** : select the **Provide a file path** option and give an **empty space** (’ ').

1. Click the **Add Software** button.
2. Now return to the **Devices** menu option and then select **All devices**.
3. In the list of devices, select the thin-edge device installed previously.
4. In the sub-menu for the device, select the **Software** option.
5. Click the **Install software** button in the bottom left; the apama-thin-edge-support should be listed.
6. Click the drop-down arrow on the right and check the ::apt radio button. Then, click **Install**.
7. Finally, click the **Apply changes** button in the lower right of the panel.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/3/b/3b8882ec92924b72aaa12414c678a186cd4479a4.png)

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/d/6/d608bc8125de3b7aa21c5ab6b407180af74d4576.png)

Once Apama support has been installed, the correlator will attempt to start. However, it will initially fail because there is not yet an Apama project installed on the device. An Apama project can be deployed using the Cumulocity IoT tenant, as described below.

## Installing an Apama project on the thin-edge device

Once you have created an Apama project you must zip up the project using the ZIP format and not some other compression utility. Then use your tenant to deploy the zipped project to your thin-edge device by following these steps:

1. Return to the **Device Management** app and go to the **Management** menu option and select the **Software repository**.
2. Click **Add software** at the right of the top menu bar.
3. In the **ADD SOFTWARE** dialog enter the following details:

- **Software** : apama-your-project-name
- **Description** : apama-your-project-name (or something else if you choose)
- **Device Filter Type:** (leave empty)
- **Software Type** : apama
- **Version** : 1.0::apama
- **SOFTWARE FILE** : select the **Upload a binary** option and either drag and drop the project zip file created previously, or use the file chooser to navigate to it in your file system.

1. Click the **Add software** button.
2. Now return to the **Devices** menu option and then select **All devices**.
3. In the list of devices, select the thin-edge device installed previously.
4. In the sub-menu for the device, select the **Software option**.
5. Click the **Install software** button in the bottom left; the apama-your-project-name project should be listed.
6. Click the drop-down arrow on the right and check the 1.0::apama radio button. Then, click **Install**.
7. Finally, click the **Apply changes** button in the lower right of the panel.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/6/e/6e8bcc4b40c117a9be9306cd9ad5e9c43d537260.png)

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/c/b/cb0b770c82fc6e239413c9c992aee3179c755a5e.png)

The project should be launched automatically upon deployment to the thin-edge device.

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [November 23, 2022, 7:42am UTC](https://community.cumulocity.com/t/using-debian-advanced-package-tool-apt-for-apama-on-thin-edge-io/7844/2 "2022-11-23T07:42:55Z")

</div>

Great article! Some screens would be nice to support the steps in Cumulocity.

---

<div class="post-metadata">

**Author:** ![Rupert\_Summerton](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@Rupert\_Summerton](https://community.cumulocity.com/u/Rupert_Summerton)\
**Post date:** [November 23, 2022, 2:58pm UTC](https://community.cumulocity.com/t/using-debian-advanced-package-tool-apt-for-apama-on-thin-edge-io/7844/3 "2022-11-23T14:58:16Z")

</div>

Thanks for feedback. Hope these screenshots help.
