Installing Network Agent using the command line

You can install Network Agent using the command line in one of the following ways:

The Network Agent installation must be started with root privileges.

To install Network Agent in silent mode:

  1. Create an answer file. In the answer file, enter a list of Network Agent installation and initial configuration settings in the format <setting >=<value>, with each setting on a separate line.

    To use an answer file correctly, you must include the following required settings:

    • KLNAGENT_SERVER: fully qualified domain name (FQDN) or IP address of the Administration Server.
    • KLNAGENT_AUTOINSTALL: this setting determines whether installation in silent mode is enabled. Specify 1.
    • EULA_ACCEPTED: consent to the conditions of the End User License Agreement for Network Agent. You must accept the terms of the End User License Agreement to continue the installation. You can read the text of the End User License Agreement in the license.txt document from the Network Agent distribution kit. If you understand and accept the conditions of the End User License Agreement, specify 1.

    You can also add other settings for the installation and initial configuration of Network Agent. For a full list of possible settings, refer to the Kaspersky Security Center Help system (section "Installing Network Agent for Linux in silent mode (with an answer file)").

  2. Set the value of the KLAUTOANSWERS environment variable by entering the full name of the answer file (including the path), as per the following example:

    export KLAUTOANSWERS=/tmp/nagent_install/answers.txt

  3. Install Network Agent:
    • To install Network Agent from an RPM package to a 32-bit operating system, execute the following command:

      # rpm -i klnagent-<build number>.i386.rpm

    • To install Network Agent from an RPM package to a 64-bit operating system, execute the following command:

      # rpm -i klnagent64-<build number>.x86_64.rpm

    • To install Network Agent from an RPM package on a 64-bit operating system for the Arm architecture, execute the following command:

      # rpm -i klnagent64-<build number>.aarch64.rpm

    • To install Network Agent from a DEB package to a 32-bit operating system, execute the following command:

      # apt-get install ./klnagent_<build number>_i386.deb

    • To install Network Agent from a DEB package to a 64-bit operating system, execute the following command:

      # apt-get install ./klnagent64_<build number>_amd64.deb

    • To install Network Agent from a DEB package on a 64-bit operating system for the Arm architecture, execute the following command:

      # apt-get install ./klnagent64_<build number>_arm64.deb

Page top