---
schema_version: "1"
id: 3d7cdf60519a90aba327b1dc04e268bd32a46bdaafa7ddc539a938dff74bcce5
title: Upgrade Self-Managed Flex Gateway
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.12/flex-gateway-upgrade.md
canonical_url: https://docs.mulesoft.com/gateway/1.12/flex-gateway-upgrade
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2abb85da27a369aaad1eff266a6a86033a532d2406308982e989ce4a00cf7e7f
description: MuleSoft Documentation Site
release: "1.12"
latest: false
---
---
product: Omni Gateway
version: 1.12
---

# Upgrade Self-Managed Flex Gateway

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You can upgrade Flex Gateway as a Linux service, in a Docker container, or in a Kubernetes cluster.

<table><colgroup><col> <col> <col></colgroup><tbody><tr><td><div><div><p><span><a href="#linux"><img src="https://docs.mulesoft.com/gateway/1.12/_images/install-linux-logo.png" alt="20%" width="20%"></a></span></p></div></div></td><td><div><div><p><span><a href="#docker"><img src="https://docs.mulesoft.com/gateway/1.12/_images/install-docker-logo.png" alt="25%" width="25%"></a></span></p></div></div></td><td><div><div><p><span><a href="#kubernetes"><img src="https://docs.mulesoft.com/gateway/1.12/_images/install-kubernetes-logo.png" alt="20%" width="20%"></a></span></p></div></div></td></tr><tr><td><div><div><p><a href="#linux">Upgrade as a Linux Service</a></p></div></div></td><td><div><div><p><a href="#docker">Upgrade in a Docker Container</a></p></div></div></td><td><div><div><p><a href="#kubernetes">Upgrade in a Kubernetes Cluster</a></p></div></div></td></tr></tbody></table>

## Upgrade as a Linux Service

Flex Gateway is distributed as a standard package. Use the following steps to upgrade or downgrade
Flex Gateway to either a specific version or the latest version.

To upgrade or downgrade Flex Gateway as a Linux Service:

1.  Update the list of available packages:

    ```ssh
    sudo apt update
    ```

    To list the available versions, run:

    ```ssh
    apt list -a flex-gateway
    ```

2.  Update Flex Gateway:

    - To the latest version:

      ```ssh
      sudo apt --only-upgrade -y install flex-gateway
      ```

    - To a specific version:

      ```ssh
      sudo apt --only-upgrade -y install flex-gateway=<version>
      ```

    - To a downgrade version:

      ```ssh
      sudo apt --only-upgrade -y --allow-downgrades install flex-gateway=<version>
      ```

3.  Restart the services:

    ```ssh
    sudo systemctl restart flex-gateway
    ```

## Upgrade in a Docker Container

The docker containers are not updated, if a new version is needed then a new container with the new
image version should be created to replace the outdated one.

The new versions of the images will be available in
[mulesoft/flex-gateway](https://hub.docker.com/r/mulesoft/flex-gateway).

## Upgrade in a Kubernetes Cluster

1.  Update charts with the respective chart repositories:

    ```ssh
    helm repo up
    ```

2.  Upgrade the release to a new version of the Helm chart by executing the following command,
    replacing example information with your own:

    ```ssh
    helm upgrade -n <namespace> <release_name> flex-gateway/flex-gateway --wait
    ```
