This is the documentation for Wazuh 3.11. Check out the docs for the latest version of Wazuh!


Wazuh provides an automated way of building RPM packages using docker so there is no need for any other dependency.

To create an RPM package follow these steps:


  • Docker
  • Git

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

$ git clone && cd wazuh-packages/rpms

Execute the script, with the different options you desire. This script will build a Docker image with all the necessary tools to create the RPM and run a container that will build it:

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

    -b, --branch <branch>     [Required] Select Git branch or tag e.g. master
    -t, --target <target>     [Required] Target package to build [manager/api/agent].
    -a, --architecture <arch> [Optional] Target architecture of the package [x86_64/i386].
    -r, --revision <rev>      [Optional] Package revision that append to version e.g. x.x.x-rev
    -l, --legacy              [Optional] Build package for CentOS 5.
    -s, --store <path>        [Optional] Set the destination path of package.
    -j, --jobs <number>       [Optional] Number of parallel jobs when compiling.
    -p, --path <path>         [Optional] Installation path for the package. By default: /var.
    -d, --debug               [Optional] Build the binaries with debug symbols and create debuginfo packages. By default: no.
    -c, --checksum <path>     [Optional] Generate checksum on the desired path (by default, if no path is specified it will be generated on the same directory than the package).
    -h, --help                Show this help.

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

# ./ -b v3.11.4 -s /tmp -t manager -a x86_64 -r my_rev.

This will generate a 3.11.4 Wazuh manager RPM package with revision my_rev for x86_64 systems.

# ./ -b v3.11.4 -s /tmp -t api -a i386 -r my_rev

This will generate a 3.11.4 Wazuh api RPM package with revision my_rev for i386 systems and store it in /tmp.

# ./ -b v3.11.4 -t agent -a x86_64 -p /opt

This will generate a 3.11.4 Wazuh agent RPM package with /opt as installation directory for x86_64 systems.