Saturday, July 25, 2026

2. Ditch yum and Master dnf for Package Management

 Briefing: While many older guides still use yum, the modern standard for installing and managing software on CentOS Stream is dnf. Here is how to use it effectively.

Detailed Explanation: Package managers handle the heavy lifting of downloading, installing, and updating software. On modern CentOS releases, dnf (Dandified YUM) is the default package manager. It is faster, uses less memory, and resolves dependencies much better than its predecessor.

Essential dnf Commands:

  • sudo dnf update – Updates all installed packages to their latest versions.

  • sudo dnf search [name] – Searches the repositories for a specific software package.

  • sudo dnf install [package_name] – Installs the software and any required dependencies.

  • sudo dnf remove [package_name] – Uninstalls software.

The Pro Tip: Application Streams CentOS Stream features modular streams. In the past, you were stuck with whatever version of a programming language (like Python or Node.js) shipped with the OS. Now, you can use dnf module list to see different supported versions of the same software and choose exactly which stream to install, keeping your development environments flexible without breaking base system dependencies.

No comments:

Post a Comment