Debian packages¶
Apt-get repository key¶
If it is the first installation from Wazuh repository you need to import the GPG key:
$ wget -qO - https://ossec.wazuh.com/repos/apt/conf/ossec-key.gpg.key | sudo apt-key add -
Debian repositories¶
To add your Debian repository, depending on your distribution, run these commands:
For Wheezy:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/debian wheezy main" >> /etc/apt/sources.list.d/ossec.list
For Jessie:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/debian jessie main" >> /etc/apt/sources.list.d/ossec.list
For Stretch:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/debian stretch main" >> /etc/apt/sources.list.d/ossec.list
For Sid:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/debian sid main" >> /etc/apt/sources.list.d/ossec.list
Ubuntu repositories¶
To add your Ubuntu repository, depending on your distribution, run these commands:
For Precise:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/ubuntu precise main" >> /etc/apt/sources.list.d/ossec.list
For Trusty:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/ubuntu trusty main" >> /etc/apt/sources.list.d/ossec.list
For Vivid:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/ubuntu vivid main" >> /etc/apt/sources.list.d/ossec.list
For Wily:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/ubuntu wily main" >> /etc/apt/sources.list.d/ossec.list
For Xenial:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/ubuntu xenial main" >> /etc/apt/sources.list.d/ossec.list
For Yakkety:
$ echo -e "deb https://ossec.wazuh.com/repos/apt/ubuntu yakkety main" >> /etc/apt/sources.list.d/ossec.list
OSSEC manager installation¶
To install the OSSEC manager debian package, from our repository, run this command:
$ apt-get install ossec-hids
OSSEC agent installation¶
To install the OSSEC agent debian package, from our repository, run this command:
$ apt-get install ossec-hids-agent