translations: [ fr/Français ] · [ es/Español ] · [ de/Deutsch ]
Table of contents
DNF, or Dandified YUM, is the next-generation package manager for Fedora Linux distributions. It simplifies package management and dependency resolution. Here’s a comprehensive guide on using DNF effectively.
Installing Packages with DNF
Step 1: Update Repository Metadata
Before installing or updating packages, ensure the repository metadata is up to date:
sudo dnf makecache
This command refreshes the repository metadata.
Step 2: Search for Packages
To search for a specific package, use:
dnf search package_name
Replace package_name
with the name of the package you want to find.
Step 3: Install Packages
Install a package using:
sudo dnf install package_name
Replace package_name
with the name of the package you want to install.
Managing Packages
Step 1: Update System Packages
To update all installed packages to their latest versions, execute:
sudo dnf update
This command updates all packages on your system.
Step 2: Remove Packages
Uninstall a package using:
sudo dnf remove package_name
Replace package_name
with the name of the package you want to remove.
Step 3: Upgrade Distribution
Upgrade your Fedora distribution to the latest version using:
sudo dnf system-upgrade
This command initiates the distribution upgrade process.
Conclusion
DNF simplifies package management in Fedora, offering robust tools for installing, updating, and removing software packages. Mastering DNF commands empowers users to efficiently maintain their Fedora systems with ease.
Ensure familiarity with commands and exercise caution when performing system-wide changes. Happy package managing with DNF!
Created on: Dec 29, 2023
Discover More within this Subject:
- Upgrading and Rolling Back Fedora Silverbue
- Understanding `kill` Command in Linux
- Understanding `ps` Command in Linux
- Creating and deleting containers in Podman