Bird
0
0

Which command correctly installs a package on CentOS using the default package manager?

easy📝 Syntax Q12 of 15
Linux CLI - Linux Basics and Terminal
Which command correctly installs a package on CentOS using the default package manager?
Aapt-get install httpd
Bpacman -S httpd
Cdnf install httpd
Dyum install httpd
Step-by-Step Solution
Solution:
  1. Step 1: Identify CentOS package manager

    CentOS traditionally uses yum as its package manager.
  2. Step 2: Check command syntax

    yum install httpd is the correct syntax to install the Apache web server on CentOS.
  3. Final Answer:

    yum install httpd -> Option D
  4. Quick Check:

    CentOS uses yum = yum install [OK]
Quick Trick: CentOS uses yum, Ubuntu uses apt, Fedora uses dnf [OK]
Common Mistakes:
MISTAKES
  • Using apt-get on CentOS
  • Using pacman which is for Arch Linux
  • Confusing dnf as default on CentOS

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes