Fedora Linux Essential Cheat Sheet
A quick reference guide for DNF package management, system tasks, and flatpaks.
1. Package Management (DNF)
sudo dnf upgrade --refresh
Refresh repository metadata and upgrade all packages.
sudo dnf install
Install a specific package from the repositories.
sudo dnf remove
Remove an installed package from the system.
dnf search
Search for packages matching the keyword.
dnf info
Display detailed information about a package.
sudo dnf autoremove
Remove unneeded dependency packages automatically.
sudo dnf clean all
Clear all cached package data and repository metadata.
2. Flatpak & Modern Management
flatpak install
Install a Flatpak application (e.g., from flathub).
flatpak run
Launch a Flatpak application from the terminal.
flatpak update
Update all installed Flatpak applications.
rpm-ostree upgrade
Upgrade the base operating system (on Fedora Atomic/Silverblue).
rpm-ostree install
Layer a traditional package on top of an atomic system base.
3. System & Service Control (systemd)
sudo systemctl start
Start a system service immediately.
sudo systemctl stop
Stop a running system service.
sudo systemctl enable --now
Enable a service to start at boot and trigger it right now.
sudo systemctl status
Show the current runtime status and logs for a service.
journalctl -u -b
View the boot logs specifically for a target service.
4. System Information & Networking
hostnamectl
View system architecture, kernel version, and hostname info.
ip a
Show all network interfaces, link statuses, and assigned IP addresses.
nmcli device status
List network devices managed by NetworkManager and their states.
sudo dnf history
View a historical list of all DNF transactions performed.