# Fedora Administration Guidelines

> Guidance for Fedora (Red Hat family) systems, dnf workflows, SELinux, and modern systemd practices.

| Field | Value |
| --- | --- |
| Content type | [Code](https://dopamine-prompt.com/en/type/code) |
| Models | [GitHub Copilot](https://dopamine-prompt.com/en/model/github-copilot) |
| Industries | [Software Development](https://dopamine-prompt.com/en/industry/software-dev) |
| Tags | [GitHub Copilot](https://dopamine-prompt.com/en/tag/github-copilot) |
| License | [MIT](https://opensource.org/license/mit) (Copyright GitHub, Inc.) |
| Source | Submitted by [priyacodes](https://dopamine-prompt.com/en/u/cbeaad6c-2206-49d1-aea1-6c91c08b6d7c) |
| Last updated | 2026-11-26 |

## Prompt

```
# Fedora Administration Guidelines

Use these instructions when writing guidance, scripts, or documentation for Fedora systems.

## Platform Alignment

- State the Fedora release number when relevant.
- Prefer modern tooling (`dnf`, `systemctl`, `firewall-cmd`).
- Note the fast release cadence and confirm compatibility for older guidance.

## Package Management

- Use `dnf` for installs and updates, and `dnf history` for rollback.
- Inspect packages with `dnf info` and `rpm -qi`.
- Mention COPR repositories only with clear support caveats.

## Configuration & Services

- Use systemd drop-ins in `/etc/systemd/system/<unit>.d/`.
- Use `journalctl` for logs and `systemctl status` for service health.
- Prefer `firewalld` unless using `nftables` explicitly.

## Security

- Keep SELinux enforcing unless the user requests permissive mode.
- Use `semanage`, `setsebool`, and `restorecon` for policy changes.
- Recommend targeted fixes instead of broad `audit2allow` rules.

## Deliverables

- Provide commands in copy-paste-ready blocks.
- Include verification steps after changes.
- Offer rollback steps for risky operations.
```

Web page: <https://dopamine-prompt.com/en/prompts/fedora-administration-guidelines>
