Fedora Quick Reference¶
CLI reference for Fedora Linux system administration. Provides direct syntax for DNF package management, systemd service control, journalctl diagnostics, firewalld rules, SELinux enforcement, and network operations.
Tested on: Fedora 44 KDE Plasma
Package Management (DNF / DNF5)¶
System Updates & Maintenance¶
Refresh metadata & update all packages:
Refresh package database only:
Remove unused/orphaned dependencies:
Clean all cached package data & metadata:
Package Operations¶
Search for a package:
Display package information:
Install package(s):
Reinstall package:
Remove package(s):
Find package providing a specific file or binary:
List installed packages:
Groups & Transaction History¶
List available package groups:
Install a package group:
View DNF transaction history:
Undo a specific transaction:
Flatpak Application Management¶
Add Flathub repository:
Search for flatpak applications:
Install an application:
Update all installed flatpaks:
List installed flatpaks:
Remove an application:
Clean up unused runtimes & dependencies:
Grant/revoke filesystem access permissions:
Service & Systemd Management (systemctl)¶
| Action | Command | ||
|---|---|---|---|
| Check status of a service | systemctl status <service> |
||
| Start / Stop / Restart a service | sudo systemctl start | stop | restart <service> |
||
| Enable service on boot | sudo systemctl enable <service> |
||
| Enable and start service immediately | sudo systemctl enable --now <service> |
||
| Disable service from starting on boot | sudo systemctl disable <service> |
||
| Mask / Unmask a service | sudo systemctl mask | unmask <service> |
||
| List all active services | systemctl list-units --type=service --state=running |
||
| List failed services | systemctl --failed |
System Logging (journalctl)¶
Tail live system logs:
View logs for a specific service:
View logs for the current boot:
View logs for the previous boot:
Filter logs by priority (errors/critical):
Limit log size by age:
Security & Firewall (firewalld & SELinux)¶
Check firewall status:
Get active zones and assigned interfaces:
Allow service permanently:
Allow TCP/UDP port permanently:
Reload firewall configuration:
List allowed services/ports in active zone:
Check SELinux status:
Change SELinux mode temporarily — sudo setenforce 0 (Permissive) :
Network Management (nmcli & ip)¶
List active connections:
List network interfaces:
Connect to a Wi-Fi network:
Bring a connection up or down:
Display IP addresses:
Display routing table:
System Diagnostics & Maintenance¶
Show Fedora release info:
Show active kernel version:
Rebuild initramfs image:
Update GRUB configuration:
Check disk usage:
Check directory space utilization:
Hardware summary:
Verified Sources & Documentation¶
- Fedora Project Documentation: https://docs.fedoraproject.org
- Fedora Quick Docs (DNF): https://docs.fedoraproject.org/en-US/quick-docs/dnf/
- DNF5 Documentation: https://dnf5.readthedocs.io
- Firewalld User Documentation: https://firewalld.org/documentation/
- Flatpak Documentation: https://docs.flatpak.org