Bird
0
0

You need to automate package installation on both Fedora and CentOS systems. Which command sequence works on both?

hard📝 Application Q9 of 15
Linux CLI - Linux Basics and Terminal
You need to automate package installation on both Fedora and CentOS systems. Which command sequence works on both?
Aapt-get install package
Byum install package
Cdnf install package
Dpacman -S package
Step-by-Step Solution
Solution:
  1. Step 1: Identify package managers on CentOS and Fedora

    CentOS uses yum, Fedora supports dnf but yum is backward compatible.
  2. Step 2: Check compatibility

    dnf is default on Fedora but not on older CentOS, apt-get is for Debian/Ubuntu, pacman is Arch Linux.
  3. Final Answer:

    yum install package -> Option B
  4. Quick Check:

    yum works on both CentOS and Fedora [OK]
Quick Trick: yum works on CentOS and Fedora for compatibility [OK]
Common Mistakes:
  • Using dnf on CentOS older versions
  • Using apt-get on RPM distros
  • Choosing pacman which is Arch only

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes