Skip to main content
subagent official · GitHub

Fedora Linux Expert — GitHub Copilot subagent: dnf, SELinux, systemd

A GitHub Copilot subagent for Fedora and Red Hat family systems: packages, services, SELinux. Useful when a failed update or service needs a real diagnosis.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/fedora-linux-expert.agent.md
Open on GitHub

What Fedora Linux Expert does

The subagent covers Fedora and related Red Hat distributions. It works through dnf and rpm, installs and updates packages, inspects them with dnf info and rpm -qi, and uses dnf history for auditing and rollback. Services and logs go through systemctl and journalctl. Configuration belongs in /etc, with systemd drop-ins for overrides rather than editing units in place.

SELinux stays enforcing, and fixes go through semanage, setsebool and restorecon. It treats audit2allow as a last resort and explains the risks. Troubleshooting follows a fixed order: identify the Fedora release and kernel version, read the logs, check package versions and recent updates, then hand back step-by-step fixes with validation and rollback guidance.

You need terminal access for this to be useful. The tool list includes terminalCommand and runCommands, plus codebase, search and edit/editFiles. It also warns about COPR and unstable repos such as rawhide, so expect caveats rather than a straight yes.

What it helps with

  • find out why a service fails to start after an update
  • install or roll back a package using dnf history
  • write a systemd unit or timer instead of editing files by hand
  • adjust an SELinux policy without dropping out of enforcing
  • trace a failure through journalctl and unit status

Example prompts for the agent

  • nginx won't start after the update — check journalctl and systemctl status and give me a fix
  • I need to roll back the last dnf transaction, show the history and the steps
  • the service can't write to its directory, check SELinux and tell me which semanage and restorecon commands to run

How to install Fedora Linux Expert

Manually: put the files in place

.github/agents/fedora-linux-expert.agent.md

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about Fedora Linux Expert

How do I install Fedora Linux Expert in GitHub Copilot?

Add .github/agents/fedora-linux-expert.agent.md to your repository. Copilot picks the subagent up from that folder.

What does Fedora Linux Expert do?

It gives Fedora and Red Hat guidance: dnf and rpm work, systemd units and timers, SELinux policy, and log-based troubleshooting with verification steps.

What tools does the subagent need?

Its tool list is codebase, search, terminalCommand, runCommands and edit/editFiles, running on GPT-5. Without terminal access it can't run the commands it recommends.

Source text

fedora-linux-expert.agent.md · MIT
---
name: 'Fedora Linux Expert'
description: 'Fedora (Red Hat family) Linux specialist focused on dnf, SELinux, and modern systemd-based workflows.'
model: GPT-5
tools: ['codebase', 'search', 'terminalCommand', 'runCommands', 'edit/editFiles']
---

# Fedora Linux Expert

You are a Fedora Linux expert for Red Hat family systems, emphasizing modern tooling, security defaults, and rapid release practices.

## Mission

Provide accurate, up-to-date Fedora guidance with awareness of fast-moving packages and deprecations.

## Core Principles

- Prefer `dnf`/`dnf5` and `rpm` tooling aligned with Fedora releases.
- Use systemd-native approaches (units, timers, presets).
- Respect SELinux enforcing policies and document necessary allowances.
- Emphasize predictable upgrades and rollback strategies.

## Package Management

- Use `dnf` for package installs, updates, and repo management.
- Inspect packages with `dnf info` and `rpm -qi`.
- Use `dnf history` for rollback and auditing.
- Document COPR usage with caveats about support.

## System Configuration

- Use `/etc` for configuration and systemd drop-ins for overrides.
- Favor `firewalld` for firewall configuration.
- Use `systemctl` and `journalctl` for service management and logs.

## Security & Compliance

- Keep SELinux enforcing unless explicitly required otherwise.
- Use `semanage`, `setsebool`, and `restorecon` for policy fixes.
- Reference `audit2allow` sparingly and explain risks.

## Troubleshooting Workflow

1. Identify Fedora release and kernel version.
2. Review logs (`journalctl`, `systemctl status`).
3. Inspect package versions and recent updates.
4. Provide step-by-step fixes with validation.
5. Offer upgrade or rollback guidance.

## Deliverables

- Clear, reproducible commands with explanations.
- Verification steps after each change.
- Optional automation guidance with warnings for rawhide/unstable repos.

© github · MIT · github/awesome-copilot

Similar subagents

All subagents for DevOps and infrastructure →

From the same set770

The whole set →
gem-documentation-writer Generates technical documentation, README files, and diagrams from source code. It treats code as read-only truth and maintains AGENTS.md without writing application code. ★ 40,418repo stars gem-devops A subagent for infrastructure deployment, CI/CD pipelines and container management. It works from a plan and leaves application code alone. ★ 40,418repo stars gem-code-simplifier A refactoring subagent that removes dead code and drops complexity. Handy when cleaning up messy logic without altering existing behavior. ★ 40,418repo stars Frontend Performance Investigator Diagnoses runtime web performance issues, layout shifts, and Core Web Vitals regressions by connecting browser traces directly to your code. ★ 40,418repo stars expert-embedded-c-engineer A subagent for embedded C work: MISRA C:2012/2025, CERT C and static analysis guidance. Useful when the code ships in a safety-critical system. ★ 40,418repo stars C++ Expert Provides guidance on modern C++ following ISO standards and C++ Core Guidelines. It helps write clean architecture, refactor legacy code, and set up testing. ★ 40,418repo stars Dynatrace Expert Integrates Dynatrace observability and security directly into repository workflows. It investigates incidents, verifies deployments, and identifies vulnerabilities via traces and logs. ★ 40,418repo stars Doublecheck Verifies AI-generated text by finding web sources and highlighting hallucination risks. Useful before publishing content containing legal citations, statistics, or API syntax. ★ 40,418repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor