Skip to content

Instantly share code, notes, and snippets.

@kentux
kentux / rocky_centos_rpms_list.sh
Last active May 3, 2021 06:22
Extract rpm list from rocky and centos repos to populate an sqlite database
#!/usr/bin/env bash
# Quentin Fourel <quentin@fourel.eu>
# Extract rpm list from rocky and centos repos to populate an sqlite database
# Script executed from a rocky server with a .repo file that contain all centos repos (suffixed by "Centos-")
# Database is created where you launch the script
set -euo pipefail