AIX

Wazuh provides an automated way of building AIX packages, keep in mind that to build an AIX package you must run this tool in an AIX system.

To create an AIX package follow these steps:

Requirements

  • curl

Download our wazuh-packages repository from GitHub and go to the aix directory.

$ curl -L https://github.com/wazuh/wazuh-packages/tarball/4.0 | tar zx
$ cd wazuh-wazuh-packages-*
$ cd aix

Execute the generate_wazuh_packages.sh script, with the different options you desire.

# ./generate_wazuh_packages.sh -h
Usage: ./generate_wazuh_packages.sh [OPTIONS]

  -b,  --branch <branch>        Select Git branch or tag.
  -r,  --revision <revision>    Define package revision text/number.
  -e,  --environment            Install all the packages necessaries to build the package.
  -s,  --store  <path>          Directory to store the resulting package.
  -p,  --install-path <path>    Installation path for the package.
  -c,  --checksum <path>        Compute the SHA512 checksum of the package.
  --chroot                      Create a chroot jail to build the package.
  -h,  --help                   Shows this help.

First, install the needed dependencies:

# ./generate_wazuh_packages.sh -e

Below, you will find some examples of how to build an AIX package.

# ./generate_wazuh_packages.sh -b v4.0.4

This will generate a 4.0.4 Wazuh agent AIX package.

# ./generate_wazuh_packages.sh -b v4.0.4 -c

This will generate a 4.0.4 Wazuh agent AIX package with checksum.

# ./generate_wazuh_packages.sh -b v4.0.4  -p /opt

This will generate a 4.0.4 Wazuh agent AIX package with /opt as installation directory.