> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# KAgent

## KAgent Installation

*KAgent* can be deployed as a RHEL, Ubuntu, or SUSE installation package on any
server inside or outside the cluster.

Automatically download & install the latest *KAgent* version using these
commands:

<CodeGroup>
  ```bash RHEL 8 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/yum/7.2/CentOS/8/x86_64
  KAGENT_PKG=$(wget -q -O - ${KAGENT_REPO} | sed 's/<[^>]*>//g' | grep -o "kagent.*ga.*rpm " | sort -V | tail -1)
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo yum install ./${KAGENT_PKG}
  ```

  ```bash Ubuntu 20 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/debian/7.2/Ubuntu/focal/binary-amd64
  KAGENT_PKG=$(wget -q -O - ${KAGENT_REPO} | sed 's/<[^>]*>//g' | grep -o "kagent.*ga.*deb " | sort -V | tail -1)
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo apt install ./${KAGENT_PKG}
  ```

  ```bash Ubuntu 22 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/debian/7.2/Ubuntu/jammy/binary-amd64
  KAGENT_PKG=$(wget -q -O - ${KAGENT_REPO} | sed 's/<[^>]*>//g' | grep -o "kagent.*ga.*deb " | sort -V | tail -1)
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo apt install ./${KAGENT_PKG}
  ```

  ```bash SUSE 15 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/yum/7.2/SUSE/15.3/x86_64
  KAGENT_PKG=$(wget -q -O - ${KAGENT_REPO} | sed 's/<[^>]*>//g' | grep -o "kagent.*ga.*rpm " | sort -V | tail -1)
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo zypper install ./${KAGENT_PKG}
  ```
</CodeGroup>

Alternatively, visit the `KAGENT_REPO` link below to search for a specific
version of *KAgent*, change `KAGENT_PKG` to that version on **line 2**, and
then run the modified commands to download & install that version:

<CodeGroup>
  ```bash RHEL 8 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/yum/7.2/CentOS/8/x86_64
  KAGENT_PKG=kagent-7.2.0.4.20240326024429.ga-0.x86_64.el8.rpm
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo yum install ./${KAGENT_PKG}
  ```

  ```bash Ubuntu 20 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/debian/7.2/Ubuntu/focal/binary-amd64
  KAGENT_PKG=kagent_7.2.0.4.20240326024429.ga-0_amd64.ubuntu20.04.deb
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo apt install ./${KAGENT_PKG}
  ```

  ```bash Ubuntu 22 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/debian/7.2/Ubuntu/jammy/binary-amd64
  KAGENT_PKG=kagent_7.2.0.4.20240326024429.ga-0_amd64.ubuntu22.04.deb
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo apt install ./${KAGENT_PKG}
  ```

  ```bash SUSE 15 theme={null}
  KAGENT_REPO=https://repo.kinetica.com/yum/7.2/SUSE/15.3/x86_64
  KAGENT_PKG=kagent-7.2.0.4.20240326024429.ga-0.x86_64.sles15.3.rpm
  wget ${KAGENT_REPO}/${KAGENT_PKG}
  sudo zypper install ./${KAGENT_PKG}
  ```
</CodeGroup>

This installs the package to the directory <Badge color="gray">/opt/gpudb/kagent</Badge> and
registers and starts the `kagent_ui` service. *KAgent* will open port `8081`
on the local firewall (if enabled).
