RedHat / CentOS

This guide covers repository-based installation on RedHat Enterprise Linux (RHEL) and CentOS.

Note: CentOS Stream is an upstream preview of RHEL, not a downstream stable rebuild like traditional CentOS. Installation steps are the same, but update cadence differs.

Prerequisites

  • Linux kernel 4.18+ (for eBPF support)

  • Root or sudo access

  • Outbound HTTPS access to packages.linuxguard.io

Note: See Prerequisites for full system requirements.

Repository Setup

The recommended installation method uses the official LinuxGuard DNF/YUM repository. This ensures you receive automatic updates and can easily manage the agent through your package manager.

Step 1: Add Repository

Create the repository configuration file:

sudo tee /etc/yum.repos.d/linuxguard.repo <<EOF
[linuxguard]
name=LinuxGuard Repository
baseurl=https://packages.linuxguard.io/dnf/\$releasever/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://packages.linuxguard.io/gpg/linuxguard.asc
EOF

Step 2: Install Agent

Update the package cache and install the agent:

Note: On CentOS 7 or RHEL 7, use yum instead of dnf:

Step 3: Enable and Start Service

Enable the agent service to start at boot:

Important: Unlike Debian/Ubuntu, RedHat-based distributions do not automatically start services after installation. You must explicitly enable and start the agent.

Direct Download

If repository setup is not possible, you can download and install the RPM package directly:

After manual installation, remember to enable and start the service:

Verification

After installation, verify the agent is correctly installed:

Check Agent Binary

Confirm the agent binary is in your PATH:

Expected output:

Verify Agent User

Confirm the agent user and group were created:

Expected output:

Note: The UID/GID numbers may vary depending on your system.

Check Service Status

Verify the agent service is installed and running:

Expected output:

The service is inactive until you complete enrollment.

Troubleshooting

Service Not Running After Install

If the service is not enabled after installation, DNF/YUM does not automatically start services. Enable and start it explicitly:

Repository Metadata Errors

If dnf install fails with repository metadata errors, refresh the cache:

Or verify the repository configuration:

SELinux Denials

If the agent fails to start due to SELinux policy violations, check for denials:

If SELinux denials are found, you may need to create a custom policy or temporarily set SELinux to permissive mode while investigating.

Note: See the Troubleshooting Guide for additional help.


Next Step: Configuration →

Related: Installation Overview | Prerequisites | Troubleshooting

Last updated

Was this helpful?