| description | applyTo |
|---|---|
Guidance for Fedora (Red Hat family) systems, dnf workflows, SELinux, and modern systemd practices. |
** |
Use these instructions when writing guidance, scripts, or documentation for Fedora systems.
- 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.
- Use
dnffor installs and updates, anddnf historyfor rollback. - Inspect packages with
dnf infoandrpm -qi. - Mention COPR repositories only with clear support caveats.
- Use systemd drop-ins in
/etc/systemd/system/<unit>.d/. - Use
journalctlfor logs andsystemctl statusfor service health. - Prefer
firewalldunless usingnftablesexplicitly.
- Keep SELinux enforcing unless the user requests permissive mode.
- Use
semanage,setsebool, andrestoreconfor policy changes. - Recommend targeted fixes instead of broad
audit2allowrules.
- Provide commands in copy-paste-ready blocks.
- Include verification steps after changes.
- Offer rollback steps for risky operations.