Bird
0
0

Which of the following is the correct syntax to install multiple packages at once using apt?

easy📝 Syntax Q3 of 15
Linux CLI - Package Management
Which of the following is the correct syntax to install multiple packages at once using apt?
Asudo apt install package1; package2; package3
Bsudo apt install package1, package2, package3
Csudo apt install -m package1 package2 package3
Dsudo apt install package1 package2 package3
Step-by-Step Solution
Solution:
  1. Step 1: Check apt install syntax

    Packages are listed separated by spaces without commas or semicolons.
  2. Step 2: Identify correct option

    sudo apt install package1 package2 package3 uses spaces correctly; others use commas or semicolons which cause errors.
  3. Final Answer:

    sudo apt install package1 package2 package3 -> Option D
  4. Quick Check:

    Install multiple packages = space separated list [OK]
Quick Trick: Separate package names with spaces, no commas [OK]
Common Mistakes:
  • Using commas between package names
  • Using semicolons to separate packages
  • Adding unsupported flags like -m

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes