Downloading Flex Gateway
Download and install Flex Gateway as a Linux service, or download the Flex Gateway image from the container registry. Downloading is a prerequisite to registering and running a gateway as a Linux service or in a container, Kubernetes cluster, or OpenShift cluster.
To run Flex Gateway inside a virtual machine (VM), download and install it as a Linux service. To run Flex Gateway in a container, Kubernetes cluster, or OpenShift cluster, download the Flex Gateway image.
See Requirements and Limits for Flex Gateway for details about hardware and software requirements.
Download and Install as a Linux Service
You can download and install Flex Gateway as a service in one of the following Linux environments:
Ubuntu
Download and install Flex Gateway as an Ubuntu service
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) versions of Ubuntu:
-
Ubuntu (Focal, Jammy)
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as a Ubuntu service, run the command block that performs the following actions:
-
Retrieves the public package keys and adds the package repository
-
Updates the package list
-
Updates
apt-get
-
Installs the Flex Gateway package
curl -XGET https://flex-packages.anypoint.mulesoft.com/ubuntu/pubkey.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://flex-packages.anypoint.mulesoft.com/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mulesoft.list
sudo apt update
sudo apt install -y flex-gateway
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
Debian
Download and install Flex Gateway as a Debian service
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) versions of Debian:
-
Debian (Bullseye, Bookworm)
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as a Debian service, run the command block that performs the following actions:
-
Retrieves the public package keys and adds the package repository
-
Updates the package list
-
Updates
apt-get
-
Installs the Flex Gateway package
curl -XGET https://flex-packages.anypoint.mulesoft.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb [arch=amd64] https://flex-packages.anypoint.mulesoft.com/debian $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mulesoft.list
sudo apt update
sudo apt install -y flex-gateway
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
Amazon Linux
Download and install Flex Gateway as an Amazon Linux service
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) version of Amazon Linux:
-
Amazon Linux 2023
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as an Amazon Linux service, run the command block that performs the following actions:
-
Adds the Flex Gateway package repository with a reference to its public key
-
Installs the Flex Gateway package
sudo tee /etc/yum.repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/amazonlinux/2023/main
gpgcheck=1
gpgkey=https://flex-packages.anypoint.mulesoft.com/amazonlinux/pubkey.gpg
repo_gpgcheck=1
enabled=1
EOF
sudo yum install -y flex-gateway
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
Red Hat Enterprise Linux
Download and install Flex Gateway as a Red Hat Enterprise Linux service
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) versions of RHEL:
-
Red Hat Enterprise Linux (9)
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as a Red Hat Enterprise Linux service, run the command block that performs the following actions:
-
Adds the Flex Gateway package repository with a reference to its public key
-
Installs the Flex Gateway package
sudo tee /etc/yum.repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/rhel/$releasever/main
gpgcheck=1
gpgkey=https://flex-packages.anypoint.mulesoft.com/rhel/pubkey.gpg
repo_gpgcheck=1
enabled=1
EOF
sudo yum install -y flex-gateway
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
Red Hat Enterprise Linux on IBM Power
Download and install Flex Gateway as a Red Hat Enterprise Linux service on IBM Power
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) versions:
-
Red Hat Enterprise Linux (9) on IBM Power (ppc64le)
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as a Red Hat Enterprise Linux service, run the command block that performs the following actions:
-
Adds the Flex Gateway package repository with a reference to its public key
-
Installs the Flex Gateway package
sudo tee /etc/yum.repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/rhel/$releasever/main
gpgcheck=1
gpgkey=https://flex-packages.anypoint.mulesoft.com/rhel/pubkey.gpg
repo_gpgcheck=1
enabled=1
EOF
sudo yum install -y flex-gateway
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
SUSE Linux Enterprise
Download and install Flex Gateway as a SUSE Linux Enterprise service
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) versions:
-
SUSE Linux Enterprise (SLES 15 SP3)
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as a SUSE Linux Enterprise service, run the command block that performs the following actions:
-
Adds the Flex Gateway package repository with a reference to its public key
-
Installs the Flex Gateway package
sudo rpm --import https://flex-packages.anypoint.mulesoft.com/suse/pubkey.gpg
sudo tee /etc/zypp/repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/suse/$releasever_major/main
gpgcheck = 1
gpgkey = https://flex-packages.anypoint.mulesoft.com/suse/pubkey.gpg
repo_gpgcheck = 1
enabled = 1
EOF
sudo zypper refresh -f flex-gateway
sudo zypper install -y flex-gateway
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
SUSE Linux Enterprise on IBM Power
Download and install Flex Gateway as a SUSE Linux Enterprise service on IBM Power
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) versions:
-
SUSE Linux Enterprise (SLES 15 SP3) on IBM Power (ppc64le)
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as a SUSE Linux Enterprise service on IBM Power, run the command block that performs the following actions:
-
Adds the Flex Gateway package repository with a reference to its public key
-
Installs the Flex Gateway package
sudo rpm --import https://flex-packages.anypoint.mulesoft.com/suse/pubkey.gpg
sudo tee /etc/zypp/repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/suse/$releasever_major/main
gpgcheck = 1
gpgkey = https://flex-packages.anypoint.mulesoft.com/suse/pubkey.gpg
repo_gpgcheck = 1
enabled = 1
EOF
sudo zypper refresh -f flex-gateway
sudo zypper install -y flex-gateway
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
CentOS
Download and install Flex Gateway as a CentOS service
Software Requirements
Flex Gateway runs on the following Long Term Support (LTS) version of CentOS:
-
CentOS 8
Before You Begin
Before getting started, ensure that you have installed the following:
Run Installation Commands
To download and install Flex Gateway as an CentOS service, run the command block that performs the following actions:
-
Adds the Flex Gateway package repository with a reference to its public key
-
Installs the Flex Gateway package
sudo tee /etc/yum.repos.d/flex-gateway.repo <<\EOF
[flex-gateway]
name = Anypoint Flex Gateway
baseurl = https://flex-packages.anypoint.mulesoft.com/centos/$releasever/main
gpgcheck=1
gpgkey=https://flex-packages.anypoint.mulesoft.com/centos/pubkey.gpg
repo_gpgcheck=1
enabled=1
EOF
sudo yum install -y flex-gateway
Due to issues with the CentOS package manager you might encounter the following error:
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
If you encounter this error, run the following command:
sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
Download Flex Gateway for Use in a Container
You can download and install Flex Gateway in one of the following containers:
Docker
Download Flex Gateway for Use in a Docker Container
Download the Flex Gateway container image to prepare for registering and running a gateway in a Docker container:
-
Download the Flex Gateway Docker image:
docker pull mulesoft/flex-gateway:latest
-
Verify that the download succeeded:
docker images mulesoft/flex-gateway
When successful, the command lists the Flex Gateway container image, for example:
REPOSITORY TAG mulesoft/flex-gateway latest
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
Podman
Download Flex Gateway for Use in a Podman Container
Download the Flex Gateway container image to prepare for registering and running a gateway in a Podman container:
-
Download the Flex Gateway container image:
podman pull docker.io/mulesoft/flex-gateway:latest
-
Verify that the download succeeded:
podman images docker.io/mulesoft/flex-gateway
When successful, the command lists the Flex Gateway container image, for example:
REPOSITORY TAG mulesoft/flex-gateway latest
After downloading and installing, register Flex Gateway in Connected or Local Mode. For more detail, see Connected Mode vs. Local Mode.
Download Flex Gateway for Use in a Kubernetes Cluster
Download the Flex Gateway container image to prepare for registering and running a gateway in a Kubernetes cluster. You can use the following container runtimes:
Docker
-
Download the Flex Gateway container image:
docker pull mulesoft/flex-gateway:latest
-
Verify that the download succeeded:
docker images mulesoft/flex-gateway
When successful, the command lists the Flex Gateway container image, for example:
REPOSITORY TAG mulesoft/flex-gateway latest
After downloading the image, register Flex Gateway in Connected or Local Mode.
Podman
-
Download the Flex Gateway container image:
podman pull docker.io/mulesoft/flex-gateway:latest
-
Verify that the download succeeded:
podman images docker.io/mulesoft/flex-gateway
When successful, the command lists the Flex Gateway container image, for example:
REPOSITORY TAG mulesoft/flex-gateway latest
After downloading the image, register Flex Gateway in Connected or Local Mode.
Download Flex Gateway for Use in an OpenShift Cluster
Download the Flex Gateway container image to prepare for registering and running a gateway in an OpenShift cluster. You can use the following container runtimes:
Docker
-
Download the Flex Gateway container image:
docker pull mulesoft/flex-gateway:latest
-
Verify that the download succeeded:
docker images mulesoft/flex-gateway
When successful, the command lists the Flex Gateway container image, for example:
REPOSITORY TAG mulesoft/flex-gateway latest
After downloading the image, register Flex Gateway in Connected or Local Mode.
Podman
-
Download the Flex Gateway container image:
podman pull docker.io/mulesoft/flex-gateway:latest
-
Verify that the download succeeded:
podman images docker.io/mulesoft/flex-gateway
When successful, the command lists the Flex Gateway container image, for example:
REPOSITORY TAG mulesoft/flex-gateway latest
After downloading the image, register Flex Gateway in Connected or Local Mode.