Overview
This document details steps to create a custom yum repository containing the Uptycs osquery agent.
Procedure
Note : Steps provided below can be placed into a Chef recipe.
# get the createrepo package (if not installed already)
yum -y install createrepo
# Create local repo and add uptycs agent rpm
vi /etc/yum.repos.d/custom.repo
# baseurl file location can be a file share, e.g. /<sharepath>/agentrepo instead of /root/customrepo/
[customrepo]
name=Custom Agent Repository
baseurl=file:///root/customrepo/
enabled=1
gpgcheck=0
# copy uptycs agent (osquery-3.2.6.51-Uptycs.rpm) to /root/customrepo (or fileshare location)
# run the command to create the yum repo
createrepo /root/customrepo
# or: createrepo /<sharepath>/agentrepo