Install the Java agent using the Debian repository

You can configure your system to retrieve and install the Java agent from the Contrast Debian repository. To do this:

  1. Use the following commands to configure your system to receive packages from the repository:

    curl https://pkg.contrastsecurity.com/api/gpg/key/public | sudo apt-key add -
    echo "deb https://pkg.contrastsecurity.com/debian-public/ all contrast" | sudo tee /etc/apt/sources.list.d/contrast-all.list
  2. Install the Contrast Java agent:

    sudo apt-get update && sudo apt-get install contrast-java-agent
  3. You will now see the Contrast Java agent JAR file at /opt/contrast/contrast-agent.jar.

  4. To complete the installation, configure the agent and provide Contrast connection parameters.