How to install osquery. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.
osquery Installation Guide
How to install osquery. Official project installation instructions and setup guide.
⚡
Automated Install (Recommended)
Quick installation instructions for osquery. This is the fastest way to complete project installation and setup.
Install via curl
curl -fsSL https://hexmos.com/ipm-install | bash &&
ipm i osqueryor
Install via npx
npx @hexmos/ipm i osqueryPrerequisites
git
clicmake
toolbuild-essential
packageVersion: >=10.3.1
python3-dev
packageVersion: >=3.8.10
openssl
libraryVersion: >=1.1.1
libev
libraryVersion: >=4.33
Manual Installation Methods
Manual installation instructions. How to install from GitHub source.
Install via AUR
yay -S --noconfirm osqueryInstall via Arch/Manjaro
sudo pacman -S --noconfirm osqueryInstall via NixOS (unstable)
nix-env -iA nixpkgs.osqueryInstall via Homebrew (macOS)
brew install osqueryInstall via Scoop (Windows)
scoop install osqueryInstall via FreeBSD
sudo pkg install -y osqueryInstall via Alpine
apk add --no-cache osqueryInstall via Debian/Ubuntu
sudo apt-get install -y osqueryInstall via Fedora/CentOS/AlmaLinux/Rocky
sudo dnf install -y osqueryInstall via openSUSE
sudo zypper --non-interactive install osqueryInstall via MacPorts
sudo port install osqueryInstall from Source
git clone https://github.com/osquery/osquery.git
cd osquery
sudo apt-get install -y build-essential cmake python3-dev git libssl-dev libtool libev-dev
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
cd build && sudo cpack -G RPM
sudo rpm -ivh osquery-*.rpm