How to Point RPM (Yum / DNF) at Chainsaw

Beginner 15 minutes Developers / DevOps Engineers Getting Started

Configure Yum/DNF on RHEL/CentOS/Fedora to fetch RPM packages through your Chainsaw proxy via a .repo file.

Overview

Point Yum/DNF at your Chainsaw instance so RPM package fetches on RHEL/CentOS/Fedora route through the firewall. This page covers the /etc/yum.repos.d/ repo file.

Replace chain305.com with your own Chainsaw deployment host and swap CLIENT_ID / CLIENT_SECRET for credentials issued from the Access page in the dashboard. The @default segment is the org slug — confirm yours under Settings → Organization → Slug. Legacy non-org-scoped URLs return HTTP 400 with error CHW-4314.

Prerequisites

  • A running Chainsaw instance (see Tutorial 01)
  • Client credentials (Client ID and Secret)
  • A RHEL/CentOS/Fedora host with Yum or DNF

/etc/yum.repos.d/chainsaw.repo

[chainsaw-baseos]
name=Chainsaw BaseOS Mirror
baseurl=https://chain305.com/chainproxy/repository/@default/yum-baseos/
username=CLIENT_ID
password=CLIENT_SECRET
gpgcheck=0
enabled=1

Verify

Run dnf makecache (or yum makecache), then confirm with chainsaw doctor verify-hook and the Traffic page in the dashboard.

Next Steps