{"id":10041,"date":"2021-08-13T21:09:57","date_gmt":"2021-08-13T18:09:57","guid":{"rendered":"https:\/\/kifarunix.com\/?p=10041"},"modified":"2024-03-18T18:54:41","modified_gmt":"2024-03-18T15:54:41","slug":"install-osquery-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-osquery-on-rocky-linux-8\/","title":{"rendered":"Install Osquery on Rocky Linux 8"},"content":{"rendered":"\n

In this guide, we are going to learn how to install osquery on Rocky Linux 8. Osquery<\/a> is an opensource tool that queries an operating system as if it were a relational database. It leverage SQL-like queries to gather Operating System information for performance, security, compliance audit analysis. It runs on multiple platforms such as Linux, FreeBSD, MacOS, Windows systems.<\/p>\n\n\n\n

Installing Osquery on Rocky Linux 8<\/h2>\n\n\n\n

Install Osquery YUM Repository<\/h3>\n\n\n\n

The default Rocky Linux repositories does not contain the osquery package.<\/p>\n\n\n\n

However, osquery publishes the stable releases to YUM repository. <\/p>\n\n\n\n

To add osquery YUM repository to Rocky Linux 8, run the command below;<\/p>\n\n\n\n

curl -L https:\/\/pkg.osquery.io\/rpm\/GPG | sudo tee \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-osquery<\/code><\/pre>\n\n\n\n
dnf config-manager --add-repo https:\/\/pkg.osquery.io\/rpm\/osquery-s3-rpm.repo<\/code><\/pre>\n\n\n\n

This installs Osquery yum repository, and you can confirm by running the command below;<\/p>\n\n\n\n

dnf repolist | grep osquery<\/code><\/pre>\n\n\n\n

Sample output;<\/p>\n\n\n\n

osquery-s3-rpm-repo             name=osquery RPM repository - x86_64<\/code><\/pre>\n\n\n\n

Install Osquery<\/h3>\n\n\n\n

Once the repository is in place, you can then install Osquery by running the command below.<\/p>\n\n\n\n

dnf --enablerepo osquery-s3-rpm-repo install osquery -y<\/code><\/pre>\n\n\n\n

Components of osquery<\/h3>\n\n\n\n

Osquery package installs three basic components;<\/p>\n\n\n\n