> ## 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 Upgrade

*KAgent* can be upgraded in place, whether it resides on a server inside or
outside the cluster.  After copying the *KAgent* package to the server hosting
*KAgent*, upgrade the package using the standard procedures for a local package:

1. Stop the current *KAgent* process:

   ```
   service kagent stop
   ```
2. Upgrade the *KAgent* application based on host operating system:

   * On RHEL:

     ```
     sudo yum upgrade ./kagent-<version>.<architecture>.rpm
     ```
   * On Debian/Ubuntu:

     ```
     sudo apt upgrade ./kagent-<version>.<architecture>.deb
     ```

This upgrades the package in the directory <Badge color="gray">/opt/gpudb/kagent</Badge> and
starts the `kagent_ui` service.
