---
title: "Upgrade package runtimes to v4.7"
description: "Maintenance tasks when updating a package's runtimes to v4.7 and its enforced licensing."
product: "Alchemy"
edition: "Public"
type: "workflow"
url: "https://docs.cloudhouse.com/public/troubleshooting-packages/upgrading-package-runtimes-to-v4-7/"
---
# Upgrade package runtimes to v4.7

With the introduction of enforced licensing in Alchemy, there are some maintenance tasks that should be performed when updating a package in which licensing was previously optional to a package that requires licensing.

Applies to: `Alchemy`

These tasks, all of which are included in the .ps1 file at the end of this article, are as follows:

- **Remove the Start/Stop events from the AAV.clc**. If these are left in the package, the usage.exe.config will result in errors that are now irrelevant given the deprecation of usage reporting.
- **Remove the usage executable and usage executable config from the package** as these are no longer in use.
- **Remove the licensing enabled flag from the chmetadata.json** as this is no longer used.

You can run these tasks on a package after updating it by downloading the [Update-ToLicensingEnforced.ps1](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/3622/4122511/1717508138626-Update-ToLicensingEnforced.ps1) and executing the file as follows:

```
. .\Update-ToLicensingEnforced.ps1
Update-ToLicensingEnforced {PathToPackage}
```

!!! note

    Replace `{PathToPackage}` in the above script with the path to the package you'd like to update.

By running this script, your recently updated package will be tidied up, and the various pieces listed above will be removed as they are no longer needed with the new licensing requirements.
