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/master | 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 e.g. 3.13
    -e, --environment                   Install all the packages necessaries to build the RPM package
    -s, --store  <rpm_directory>        Directory to store the resulting RPM package. By default: /tmp/build
    -p, --install-path <rpm_home>       Installation path for the package. By default: /var
    -c, --checksum <path>               Compute the SHA512 checksum of the RPM 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 v3.13.2

This will generate a 3.13.2 Wazuh agent AIX package.

# ./generate_wazuh_packages.sh -b v3.13.2 -c

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

# ./generate_wazuh_packages.sh -b v3.13.2  -p /opt

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