Cloud Agent Relocation

The Linux .rpm-based package supports relocation to install the Cloud Agent at locations other than the default location. During Cloud Agent installation, you can specify up to three relocation paths.

Following are the default locations for some of the Cloud Agent artifacts.

  • Binaries/Libraries/Data Default location: /usr/local/qualys relocated to <any path>/qualys.
  • Configuration Default location: /etc/qualys relocated to <any path>/qualys.
  • Log Files Default location: /var/log/qualys relocated to <any path>/qualys.

The following are the sample installation arguments that you have to provide with the installation command to specify the relocation path. The relocation arguments contain the default location and the new location.

rpm --relocate /usr/local=/opt/ --relocate /etc=/etc/opt/config

--relocate/var/log=/var/opt -ivh qualys-cloud-agent-<package>x86_64.rpm

 The relocated directories have the same permissions as approved for the default directories.

Symbolic links are used in each of the default locations to reference the new locations and are required to be present in the default locations.

 Relocation is only available for new agent installations. You cannot relocate an existing installation.

Perform the following steps to relocate an already-installed Cloud Agent:

  1. Uninstall the Cloud Agent you want to relocate and delete all of its artifacts.
  2. Perform the installation steps as described above.