Hi, Sayontani Bose
Yes it is possible, below I will tell you how to do it :)
In this link
https://documentation.wazuh.com/3.13/development/packaging/index.html you can find a guide on how to generate custom packages.
Imagine you want to make a custom package in a
ubuntu 18.04 to install wazuh in
/home (I will use this guide
https://documentation.wazuh.com/3.13/development/packaging/generate-deb-package.html#debian).
Note: As requirements to create the custom package you need to have installed docker and git.- First, you need to download the
wazuh-packages repository, and place it in the corresponding directory where the package generation script (
generate_debian_package.sh) is located:
Suppose we want to make a custom package for version
3.13.1 in
/home. So we would use the following command:
./generate_debian_package.sh -b v3.13.1 -t agent -p /home
(
-b to indicate wazuh branch version and
-p to set the installation path. You can see all available parameters using
-h)
- After waiting for the process to finish, you can find the package in the
output directory.
- If we install that custom package, we see how the installation directory has been set correctly
root@ubuntu:~# cat /etc/ossec-init.conf
DIRECTORY="/home"
NAME="Wazuh"
VERSION="v3.13.1"
REVISION="31309"
DATE="Mon Aug 31 08:13:59 UTC 2020"
TYPE="agent"
Note: Be careful if you specify the path
/home, because the result you would have would be the following:
root@ubuntu:/home# ls /home
active-response agentless backup bin etc lib logs queue ruleset tmp ubuntu vagrant var wodles
(Perhaps in this case it would be better
/home/ossec or
/home/wazuh ...
/home/whatever_you_want )
I hope this information is helpful to you :)
Best regards.