Progress: 0/62 (0%)

πŸ” Searching for Packages

RedHat/CentOS Package Tools

RedHat-based systems (like RHEL, CentOS, Fedora) have their own package management tools: yum, dnf, and rpm. Again, think of them as high-level and low-level helpers.

a. yum – The Classic Helper

yum (Yellowdog Updater Modified) is the older, reliable tool.

Handles packages automatically: finds them in repos, installs dependencies, updates software.

Common commands:

  • sudo yum install package_name β†’ Install a package
  • sudo yum remove package_name β†’ Remove a package
  • sudo yum update β†’ Update all installed packages
  • yum list installed β†’ List installed packages

Analogy:
yum is like your trusted store clerkβ€”you tell them what you want, and they get it with all necessary accessories.

b. dnf – The Modern Replacement

dnf is the newer, faster, smarter version of yum.

Mostly compatible with yum commands but better at resolving dependencies and handling large repos.

Common commands:

  • sudo dnf install package_name β†’ Install a package
  • sudo dnf remove package_name β†’ Remove a package
  • sudo dnf upgrade β†’ Update all packages

Analogy:
dnf is like a super-efficient store clerk with a smart appβ€”faster, more precise, fewer mistakes.

c. rpm – The Low-Level Tool

rpm (RedHat Package Manager) installs .rpm files directly.

Doesn't handle dependencies automatically, so it's manual like dpkg.

Common commands:

  • sudo rpm -i package_file.rpm β†’ Install local package
  • sudo rpm -e package_name β†’ Remove package
  • rpm -qa β†’ List installed packages

Analogy:
You buy the blender yourself and assemble itβ€”if parts are missing, you hunt them down.

d. When to Use Which

  • Use dnf (or yum) for normal package management β†’ automatic, safe.
  • Use rpm only for manual installs from local files β†’ .

Real-life analogy

πŸ’‘ Quick Analogy Recap:
yum = classic clerk (automatic, reliable)
dnf = smart clerk (faster, smarter)
rpm = DIY shopper (manual, hands-on)

Next up is 5️⃣ Updating the System.
Shall I continue?