almalinux-autopatch

Automate CentOS/RHEL source package modifications for AlmaLinux rebuilds via config.yaml.

2|Updated Jan 13, 2025
One-click install
npx skills add https://github.com/AlmaLinux/autopatch-tool --skill almalinux-autopatch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: almalinux-autopatch
Source: https://github.com/AlmaLinux/autopatch-tool/tree/main
Command: npx skills add https://github.com/AlmaLinux/autopatch-tool --skill almalinux-autopatch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates modifications to CentOS/RHEL source packages for AlmaLinux rebuilds.

Core Features & Use Cases

  • Declarative, per-package patching via YAML config.yaml
  • Supports release tagging, debranding, and patch management
  • Scales across multiple packages and branches

Quick Start

Create a per-package config.yaml under the autopatch namespace and run the autopatch tool to apply changes to your rpms repo.

Frequently Asked Questions about almalinux-autopatch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate debranding and patching for CentOS source packages?

Automating debranding and patching for CentOS source packages is done by defining modifications in a YAML configuration file to apply branding changes, manage patches, and update release metadata across multiple packages and branches for AlmaLinux rebuilds.

What is declarative per-package patching for AlmaLinux rebuilds?

Declarative per-package patching for AlmaLinux rebuilds is a method where you define source package modifications in a YAML file, specifying actions like file replacements, script execution, and changelog entries to automate the rebuild preparation process.

How do I apply release tagging and file replacements across multiple Git branches?

Applying release tagging and file replacements across multiple Git branches requires using an automated tool that reads a per-package YAML configuration to execute actions like modify_release, replace, and delete_files, integrating with Git and rpmspec tooling.

Does AlmaLinux autopatch support running custom scripts during package modification?

Yes, AlmaLinux autopatch supports running custom scripts during package modification through the run_script action defined in the YAML configuration, allowing dynamic adjustments alongside standard file replacements and changelog entries.

Can I manage changelog entries and release metadata without manual rpmspec editing?

Managing changelog entries and release metadata without manual rpmspec editing is possible by declaring the changelog_entry and modify_release actions in a YAML config, which the automation tool then applies directly to the source package.

What are the limitations of using YAML configs for RHEL source package modifications?

Limitations of using YAML configs for RHEL source package modifications include dependency on the specific actions provided by the automation tool, requiring familiarity with rpmspec and Git tooling integration to handle complex edge cases not covered by declarative configurations.