Bird
0
0

You want to automate updating all packages on a CentOS system without prompts. Which command should you use?

hard📝 Application Q15 of 15
Linux CLI - Package Management
You want to automate updating all packages on a CentOS system without prompts. Which command should you use?
Asudo dnf update -y
Bsudo yum update
Csudo dnf install -y
Dsudo yum remove -y
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to update all packages

    dnf update or yum update updates all installed packages.
  2. Step 2: Add automation to avoid prompts

    Adding -y automatically answers yes to prompts, enabling automation.
  3. Final Answer:

    sudo dnf update -y -> Option A
  4. Quick Check:

    dnf update -y = automated full update [OK]
Quick Trick: Use -y with update to automate package upgrades [OK]
Common Mistakes:
  • Using install instead of update to upgrade packages
  • Forgetting sudo for permission
  • Using remove instead of update

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes